mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
autofill cache if key si missing.
This commit is contained in:
parent
3ce2750534
commit
e95f372b2f
1 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,9 @@ class DatabaseBackend(Backend):
|
|||
key = self.add_prefix(key)
|
||||
if self._cache:
|
||||
value = self._cache.get(key)
|
||||
if value is None:
|
||||
self.autofill()
|
||||
value = self._cache.get(key)
|
||||
else:
|
||||
value = None
|
||||
if value is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue