Bugfix cache invalidation
This commit is contained in:
parent
e3cf7d9ee6
commit
7df8837b34
1 changed files with 1 additions and 1 deletions
2
tasks.py
2
tasks.py
|
@ -324,7 +324,7 @@ def invalidate_cache(activity):
|
||||||
if activity.get_object().id.startswith(BASE_URL):
|
if activity.get_object().id.startswith(BASE_URL):
|
||||||
DB.cache2.remove()
|
DB.cache2.remove()
|
||||||
elif activity.has_type(ap.ActivityType.ANNOUNCE):
|
elif activity.has_type(ap.ActivityType.ANNOUNCE):
|
||||||
if activity.get_object.id.startswith(BASE_URL):
|
if activity.get_object().id.startswith(BASE_URL):
|
||||||
DB.cache2.remove()
|
DB.cache2.remove()
|
||||||
elif activity.has_type(ap.ActivityType.UNDO):
|
elif activity.has_type(ap.ActivityType.UNDO):
|
||||||
DB.cache2.remove()
|
DB.cache2.remove()
|
||||||
|
|
Loading…
Reference in a new issue