Problem Description
- You have the WP Rocket plugin activated
- When you look in the filesystem (wp-content/cache/wp-rocket) either the cache files are not being generated, or they're being generated then removed shortly thereafter
Please note: the solutions below only apply in these specific circumstances.
Problem Resolution
We've seen two cases where this occurs:
- The file wp-content/advanced-cache.php has the wrong file paths within. To resolve this, remove the advanced-cache-php file, then deactivate and re-activate WP Rocket to have it regenerate the file with the correct paths.
- An object cache like Redis is misconfigured, causing the page cache to be regenerated repeatedly and unnecessarily. First, if you have any clones of the site, be sure to flush the redis cache, then disable the redis plugin on that clone. Then manually flush the redis cache server side by running the following via command line: redis-cli flushall
This should resolve the issue with the WP Rocket cache files not being generated or being regenerated too frequently.