mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
Add a note about caching
This commit is contained in:
@@ -7,6 +7,7 @@ from awx.main.models.configuration import TowerSettings
|
||||
|
||||
class TowerConfiguration(object):
|
||||
|
||||
# TODO: Caching so we don't have to hit the database every time for settings
|
||||
def __getattr__(self, key):
|
||||
ts = TowerSettings.objects.filter(key=key)
|
||||
if not ts.exists():
|
||||
|
||||
Reference in New Issue
Block a user