Browse Source

Fix history cache clearing when page modified

master
Chase Sterling 7 years ago
parent
commit
8a81bb121c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      realms/modules/wiki/models.py

+ 2
- 1
realms/modules/wiki/models.py View File

@@ -223,7 +223,8 @@ class WikiPage(HookMixin):
return username, email

def _clear_cache(self):
cache.delete_many(*(self._cache_key(p) for p in ['data', 'info']))
for p in ['data', 'history']:
cache.delete(self._cache_key(p))

def delete(self, username=None, email=None, message=None):
"""Delete page.


Loading…
Cancel
Save