mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-12 02:29:09 +00:00
improvements + review fixes
This commit is contained in:
@@ -572,7 +572,12 @@ export const superAdminServiceFactory = ({
|
||||
};
|
||||
|
||||
const invalidateCache = async (type: CacheType) => {
|
||||
if (type === CacheType.ALL || type === CacheType.SECRETS) await keyStore.deleteItems("secret-manager:*");
|
||||
let totalKeysCleared = 0;
|
||||
|
||||
if (type === CacheType.ALL || type === CacheType.SECRETS)
|
||||
totalKeysCleared += await keyStore.deleteItems({ pattern: "secret-manager:*" });
|
||||
|
||||
return totalKeysCleared;
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user