forked from rDrama/rDrama
1
0
Fork 0

remove unnecessary flush

master
Aevann 2023-07-25 20:43:52 +03:00
parent 0012100973
commit 0340aaf244
1 changed files with 0 additions and 2 deletions

View File

@ -736,8 +736,6 @@ def submit_post(v:User, sub=None):
cache.delete_memoized(frontlist)
cache.delete_memoized(userpagelisting)
g.db.flush()
key_pattern = app.config["CACHE_KEY_PREFIX"] + 'frontpage_*'
for key in redis_instance.scan_iter(key_pattern):
redis_instance.delete(key)