From 84191d224bb854a978ccab439967d13851aecbde Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 2 Aug 2023 00:52:17 +0300 Subject: [PATCH] move _sub_inactive_purge_task to the bottom since it has a flush --- files/helpers/cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index b05f88685f..c94ac74940 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -44,13 +44,13 @@ def cron_fn(every_5m, every_1d): if every_1d: stats.generate_charts_task(SITE) - _sub_inactive_purge_task() - cache.set('stats', stats.stats(), timeout=CRON_CACHE_TIMEOUT) _generate_emojis_zip() _leaderboard_task() + + _sub_inactive_purge_task() g.db.commit() except: print(traceback.format_exc(), flush=True)