strapi-plugin-rest-cache icon indicating copy to clipboard operation
strapi-plugin-rest-cache copied to clipboard

Redis Cache gets cleared completely when updating any data

Open gilson-perfomatix opened this issue 2 years ago • 4 comments

I am using strapi-plugin-rest-cache with Redis for caching API. Using it with 4.x version of strapi.

As I check the Redis after calling two API, there will be data stored in Redis. But while updating any of the one data from strapi admin, all the data gets cleared from Redis.

gilson-perfomatix avatar Jul 05 '22 12:07 gilson-perfomatix

I have the same problem, @gilson-perfomatix you can try remove keysPrefix. It working with me

lenhatnguyen avatar Jul 17 '22 23:07 lenhatnguyen

Any update on this fix guys? Is it working as expected now ?

de-shine avatar Feb 22 '24 12:02 de-shine

Isn't this how it's supposed to be working? meaning shouldn't the cache be cleared when the data is updated to always have fresh data?

da7a90-backup avatar May 30 '24 11:05 da7a90-backup

Isn't this how it's supposed to be working? meaning shouldn't the cache be cleared when the data is updated to always have fresh data?

Yes that is correct

derrickmehaffy avatar May 30 '24 14:05 derrickmehaffy