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
My project uses Django version 4.1.9 and cachalot 2.5.3 (latest version). I just added the CACHES (BACKEND: "django.core.cache.backends.redis.RedisCache") option in Django and added the UpdateCacheMiddleware and FetchFromCacheMiddleware middlewares plus added "cachalot" to my installed_apps. Now when I patch/ put anything I am getting a correct and updated response (200 with the changes) but when I try to GET the resource it still shows the old response (200 without the changes).
What should've happened instead?
Django cachalot should have invalidated the cache.
The text was updated successfully, but these errors were encountered:
I suppose this is because Django per-site caches are not to use with django cachalot. I suspect that the site is cached and even though cachalot invalidates the SQL cache the stale site still gets delivered, as Django doesn't even run a new SQL query.
What happened?
My project uses Django version 4.1.9 and cachalot 2.5.3 (latest version). I just added the CACHES (
BACKEND: "django.core.cache.backends.redis.RedisCache"
) option in Django and added theUpdateCacheMiddleware
andFetchFromCacheMiddleware
middlewares plus added "cachalot" to my installed_apps. Now when I patch/ put anything I am getting a correct and updated response (200 with the changes) but when I try to GET the resource it still shows the old response (200 without the changes).What should've happened instead?
Django cachalot should have invalidated the cache.
The text was updated successfully, but these errors were encountered: