autofill cache if key si missing.

This commit is contained in:
Jan Nakladal 2016-07-12 16:31:11 +12:00
parent 3ce2750534
commit e95f372b2f

View file

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