mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Merge pull request #50 from pomarec/fix.discard-cache-on-set-value
Fixed discard cache on set value (key prefix was missing)
This commit is contained in:
commit
dc89ec294f
1 changed files with 1 additions and 1 deletions
|
|
@ -65,4 +65,4 @@ class DatabaseBackend(Backend):
|
|||
|
||||
def clear(self, sender, instance, created, **kwargs):
|
||||
if db_cache and not created:
|
||||
db_cache.delete_many(settings.CONFIG.keys())
|
||||
db_cache.delete_many(self.add_prefix(k) for k in settings.CONFIG.keys())
|
||||
|
|
|
|||
Loading…
Reference in a new issue