fix posting on wpd taking a million years

master
Aevann 2023-08-17 04:53:37 +03:00
parent 475fe1f6ac
commit ffc55ebb81
1 changed files with 0 additions and 4 deletions

View File

@ -675,10 +675,6 @@ def submit_post(v, sub=None):
cache.delete_memoized(frontlist)
cache.delete_memoized(userpagelisting)
key_pattern = app.config["CACHE_KEY_PREFIX"] + 'frontpage_*'
for key in redis_instance.scan_iter(key_pattern):
redis_instance.delete(key)
if not p.private:
execute_snappy(p, v)