fix: invalidate all cache on invalidate cache route (#1498)

This commit is contained in:
Kartikeya Hegde
2023-06-26 16:13:57 +05:30
committed by GitHub
parent 8c93904c3e
commit 2c6cc6ab50
4 changed files with 43 additions and 27 deletions

View File

@ -87,6 +87,11 @@ impl PubSubInterface for redis_interface::RedisConnectionPool {
ACCOUNTS_CACHE.invalidate(key.as_ref()).await;
key
}
CacheKind::All(key) => {
CONFIG_CACHE.invalidate(key.as_ref()).await;
ACCOUNTS_CACHE.invalidate(key.as_ref()).await;
key
}
};
self.delete_key(key.as_ref())