Invalidate cache

This commit is contained in:
Maxim Filipenko 2016-06-03 17:40:32 +03:00
parent c5b51394aa
commit 1b6730d2c5

View file

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