Error 404 on pages when empty cache (Excepte home)
-
Hi,
We have our wordpress website running on WordPress 5.2.5 and W3TC 0.12.
The Website is running on a Kubernetes infrastructure, currently, the cache is not persisted and not shared between instances. In resume, when we deploy a new version or simply create a new instance, the cache folder does not exist (or is empty).The problem here is that we are not able to access to website pages except the homepage and we get 404 (returned directly by Apache).
We can solve the problem by going to “Admin > Pages” then clicking on a random page.
By doing that, every pages are now accessible.Our configuration:
– Page Cache
– Database Cache
– Object CacheWith “define(‘WP_CACHE’, true); define(‘W3TC_CONFIG_DATABASE’, true); define( ‘W3TC_CONFIG_DATABASE_TABLE’, ‘wp_options’ )” in “wp-config.php”
How can we solve this problem, currently, it’s a pain to autoscale our infrastructure and manage our automatic deployments.
Thanks in advance
- The topic ‘Error 404 on pages when empty cache (Excepte home)’ is closed to new replies.