This commit is contained in:
@@ -100,6 +100,7 @@ async def precache_topics_followers(topic_id: int, session):
|
||||
|
||||
|
||||
async def precache_data():
|
||||
try:
|
||||
# cache reset
|
||||
await redis.execute("FLUSHDB")
|
||||
logger.info("redis flushed")
|
||||
@@ -144,3 +145,5 @@ async def precache_data():
|
||||
await precache_topics_followers(topic_id, session)
|
||||
await precache_topics_authors(topic_id, session)
|
||||
logger.info("topics followings precached")
|
||||
except Exception as exc:
|
||||
logger.error(exc)
|
||||
|
||||
Reference in New Issue
Block a user