mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix: invalidate all cache on invalidate cache route (#1498)
This commit is contained in:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user