Fix clearing cache on page edits with new WikiPage refactor
This commit is contained in:
parent
6e10d56479
commit
3c3d39c771
|
@ -176,7 +176,7 @@ class WikiPage(object):
|
||||||
return username, email
|
return username, email
|
||||||
|
|
||||||
def _clear_cache(self):
|
def _clear_cache(self):
|
||||||
cache.delete_many(self._cache_key(p) for p in ['data', 'info'])
|
cache.delete_many(*(self._cache_key(p) for p in ['data', 'info']))
|
||||||
|
|
||||||
def delete(self, username=None, email=None, message=None):
|
def delete(self, username=None, email=None, message=None):
|
||||||
"""Delete page.
|
"""Delete page.
|
||||||
|
|
Loading…
Reference in a new issue