mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Clear cache again after setting up client tracking
This commit is contained in:
@@ -223,8 +223,10 @@ if (config.redis?.enabled) {
|
||||
cache?.clear();
|
||||
|
||||
await setupCacheClientListener(cacheClient as RedisClientType, cache);
|
||||
void setupCacheClientTracking(client as RedisClientType, cacheClient as RedisClientType);
|
||||
void setupCacheClientTracking(readClient as RedisClientType, cacheClient as RedisClientType);
|
||||
void Promise.all([
|
||||
setupCacheClientTracking(client as RedisClientType, cacheClient as RedisClientType),
|
||||
setupCacheClientTracking(readClient as RedisClientType, cacheClient as RedisClientType)
|
||||
]).then(() => cache?.clear());
|
||||
});
|
||||
|
||||
void cacheClient.connect();
|
||||
|
||||
Reference in New Issue
Block a user