1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Add a note about caching

This commit is contained in:
Matthew Jones 2015-12-15 16:42:32 -05:00
parent dfd1ca4ae9
commit 0404f6ebc3

View File

@ -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():