Skip to content

Instantly share code, notes, and snippets.

@jsanta
Created August 12, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsanta/75d00e65793f4c6adcc765132fe39369 to your computer and use it in GitHub Desktop.
Save jsanta/75d00e65793f4c6adcc765132fe39369 to your computer and use it in GitHub Desktop.
diff --git a/node_modules/strapi-plugin-rest-cache/server/services/cacheStore.js b/node_modules/strapi-plugin-rest-cache/server/services/cacheStore.js
index 97352f1..5476520 100644
--- a/node_modules/strapi-plugin-rest-cache/server/services/cacheStore.js
+++ b/node_modules/strapi-plugin-rest-cache/server/services/cacheStore.js
@@ -134,8 +134,8 @@ function createCacheStoreService({ strapi }) {
}
return keys
- .filter((key) => keysPrefixRe.test(key))
- .map((key) => key.replace(keysPrefixRe, ''));
+ .filter((key) => keysPrefixRe.test(key));
+ // .map((key) => key.replace(keysPrefixRe, ''));
});
} catch (error) {
strapi.log.error(`REST Cache provider errored:`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment