fix(medusa): Remove redundant redis delete call when invalidating cache entryies (#2943)

This commit is contained in:
Oliver Windall Juhl
2023-01-05 19:08:14 +01:00
committed by GitHub
parent 3d200c41f9
commit 0b14814d5a

View File

@@ -54,7 +54,6 @@ export default class CacheService implements ICacheService {
* @param key
*/
async invalidate(key: string): Promise<void> {
await this.redis_.del()
const keys = await this.redis_.keys(key)
const pipeline = this.redis_.pipeline()