mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -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):
|
class TowerConfiguration(object):
|
||||||
|
|
||||||
|
# TODO: Caching so we don't have to hit the database every time for settings
|
||||||
def __getattr__(self, key):
|
def __getattr__(self, key):
|
||||||
ts = TowerSettings.objects.filter(key=key)
|
ts = TowerSettings.objects.filter(key=key)
|
||||||
if not ts.exists():
|
if not ts.exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user