diff --git a/files/routes/admin.py b/files/routes/admin.py index 34deca237..b91d00943 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -525,7 +525,7 @@ def shadowban(user_id, v): ) g.db.add(ma) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -549,7 +549,7 @@ def unshadowban(user_id, v): ) g.db.add(ma) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -718,7 +718,7 @@ def ban_post(post_id, v): ) g.db.add(ma) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -746,7 +746,7 @@ def unban_post(post_id, v): g.db.add(post) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -783,7 +783,7 @@ def api_sticky_post(post_id, v): post.stickied = not (post.stickied) g.db.add(post) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 diff --git a/files/routes/posts.py b/files/routes/posts.py index 977625c5d..d7b9cd354 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -31,7 +31,7 @@ def publish(pid, v): post.private = False g.db.add(post) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -920,7 +920,7 @@ def submit_post(v): g.db.add(v) cache.delete_memoized(User.userpagelisting, v) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) if "[changelog]" in new_post.title: cache.delete_memoized(changeloglist) if request.headers.get("Authorization"): return new_post.json @@ -942,7 +942,7 @@ def delete_post_pid(pid, v): g.db.add(post) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204 @@ -955,7 +955,7 @@ def undelete_post_pid(pid, v): post.deleted_utc =0 g.db.add(post) - cache.delete_memoized(frontlist) + #cache.delete_memoized(frontlist) return "", 204