You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entity caching feature currently works alongside the global namespace setting, however when attempting to invalidate, the SCAN used is not using that namespace for that operation. As a result, the cache is unable to be invalidated outside of the normal TTL supported.
And start up a Redis service locally alongside cacheable subgraphs. Make a few requests and note that you are seeing cached responses.
Attempt to clear the cache using the invalidation API or subgraph extensions and note that the cache won't be busted on repeating the original request.
Describe the bug
The entity caching feature currently works alongside the global
namespace
setting, however when attempting to invalidate, theSCAN
used is not using that namespace for that operation. As a result, the cache is unable to be invalidated outside of the normal TTL supported.To Reproduce
Use a config like:
And start up a Redis service locally alongside cacheable subgraphs. Make a few requests and note that you are seeing cached responses.
Attempt to clear the cache using the invalidation API or subgraph extensions and note that the cache won't be busted on repeating the original request.
Expected behavior
Invalidation works with the namespace setting.
Output
redis-cli's
monitor
command:Where the above is using the same config noted in the reproduction steps. Note the missing
entity-cache:
prefix.For reference, here's the GET command for that same config:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: