forked from MarseyWorld/MarseyWorld
fix emoji cache
parent
32d0b97f6e
commit
c5f1c1574c
|
@ -246,7 +246,7 @@ def approve_emoji(v, name):
|
|||
cache.delete("emojis_False")
|
||||
cache.delete(f"emoji_list_{emoji.kind}_False")
|
||||
|
||||
cache.set("emojis_num", g.db.query(Emoji).count())
|
||||
cache.set("emojis_num", g.db.query(Emoji).filter_by(submitter_id=None).count())
|
||||
|
||||
purge_files_in_cloudflare_cache(f"{SITE_FULL_IMAGES}/e/{emoji.name}/webp")
|
||||
|
||||
|
|
Loading…
Reference in New Issue