mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Invalidate cache
This commit is contained in:
parent
c5b51394aa
commit
1b6730d2c5
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ class DatabaseBackend(Backend):
|
|||
if not created:
|
||||
constance.value = value
|
||||
constance.save()
|
||||
if self._cache:
|
||||
self._cache.set(key, value)
|
||||
|
||||
def clear(self, sender, instance, created, **kwargs):
|
||||
if self._cache and not created:
|
||||
|
|
|
|||
Loading…
Reference in a new issue