strapi-community / strapi-plugin-rest-cache

Speed-up HTTP requests with LRU cache.
https://strapi-community.github.io/strapi-plugin-rest-cache/
MIT License
129 stars 29 forks source link

Redis Cache gets cleared completely when updating any data #26

Open gilson-perfomatix opened 2 years ago

gilson-perfomatix commented 2 years ago

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.

lenhatnguyen commented 2 years ago

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

de-shine commented 9 months ago

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

da7a90-backup commented 6 months ago

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?

derrickmehaffy commented 6 months ago

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