I’m using Redis to cache data in my Strapi application, and I’ve noticed that there’s an unexpected behavior when trying to flush data from the Redis cache. Normally, when I issue a flush command, Redis clears all cached data, and subsequent requests to the same data source result in fresh queries being made.
However, I’ve noticed that if there are any queries or parameters present in the request, Redis seems to return data directly from the cache without checking the query against the database. In other words, it’s as if the presence of a query or parameter in the request is causing Redis to bypass the usual query process and serve cached data immediately.