mirror of
https://github.com/jazzband/django-constance.git
synced 2026-05-22 14:21:53 +00:00
create autofill_values dict with full_cachekey straight away
This commit is contained in:
parent
03fe0457ef
commit
34124898cc
1 changed files with 1 additions and 2 deletions
|
|
@ -53,8 +53,7 @@ class DatabaseBackend(Backend):
|
|||
full_cachekey = self.add_prefix(self._autofill_cachekey)
|
||||
if self._cache.get(full_cachekey):
|
||||
return
|
||||
autofill_values = {}
|
||||
autofill_values[full_cachekey] = 1
|
||||
autofill_values = {full_cachekey: 1}
|
||||
for key, value in self.mget(settings.CONFIG):
|
||||
autofill_values[self.add_prefix(key)] = value
|
||||
self._cache.set_many(autofill_values, timeout=self._autofill_timeout)
|
||||
|
|
|
|||
Loading…
Reference in a new issue