Closed vhnam closed 2 years ago
Hello everyone, I'm getting same issue with these issues on my production.
It means, i'm using Redis to cache and while clicking on the "Purge REST Cache" button then it doesn't work.
After debugging then i see the cause is the shouldDel at https://github.com/strapi-community/strapi-plugin-rest-cache/blob/e37ca174a7bb10c543edadbc12c0f8c52ed1f6cb/packages/strapi-plugin-rest-cache/server/services/cacheStore.js#L187 always returns an empty array so that we can't purge. What we expect that it returns an array with expected keys will be deleted.
shouldDel
Another issue, i'm using keyPrefix for my Redis and shouldDel compared with the key without keyPrefix.
keyPrefix
Thank you.
Hello everyone, I'm getting same issue with these issues on my production.
It means, i'm using Redis to cache and while clicking on the "Purge REST Cache" button then it doesn't work.
After debugging then i see the cause is the
shouldDel
at https://github.com/strapi-community/strapi-plugin-rest-cache/blob/e37ca174a7bb10c543edadbc12c0f8c52ed1f6cb/packages/strapi-plugin-rest-cache/server/services/cacheStore.js#L187 always returns an empty array so that we can't purge. What we expect that it returns an array with expected keys will be deleted.Another issue, i'm using
keyPrefix
for my Redis andshouldDel
compared with the key withoutkeyPrefix
.Thank you.