darkweak / souin

An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache

Home Page:https://docs.souin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis stops working after a short moment?

p0358 opened this issue · comments

So after Caddy bootup it seems all is okay, cache works and you get hits. But as you open a few pages, you find out that you start getting fwd=uri-miss for everything. This lasts sometimes until Caddy is restarted, but sometimes even restarting doesn't help. And sometimes it does and works for much longer. What gives?

Also when storing, it seems to ignore these headers and still store stuff in cache:

Cache-Control: public, immutable, max-age=864000, s-maxage=0
Souin-Cache-Control: no-store, no-cache, must-revalidate, max-age=0

And to fix it I have to fully take down my Docker containers (not just do a docker compose restart), and then also remove redis dump.rdb file. If I don't, the issue will continue. What's weird is that I think based on quick profiling, that the requests Souin makes should yield results back from Redis, so it's weird why it'd suddenly just stop working...

So currently Badger corrupts the cache entries in memory after some time and Redis stops working completely :/ Nvm Nuts seems to be just fine actually!

I suspect the docker network create this issue by closing the communication between containers.

@p0358 can you retry with the latest release please?