Merge pull request #145 from prokaktus/fix-cache

Update cache when key changed
This commit is contained in:
Camilo Nova 2016-06-07 09:07:29 -05:00
commit 9f9fdc067d

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: