301 redirects on secondary language root page

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer