Hello, I have this weird situation where I get infinite 301 redirects on secondary language root page (Pollylang plugin). There is no redirects on primary language. WordPress site is deployed on Kubernetes as container (official: php8.2-apache).
Only way to fix is to run wp cache flush from cli.
What makes whole thing a lot harder to reproduce, is that the problem is only on production site ( as always 😀 ) not on the test site which run on exact same container and use the same redis db container as sidecar.
Is there any way to check with php if redis cache is invalid or stale or damaged? I could make a small php snippet to flush redis db if I could detect it.
Thanks