Yoast + Wp Super Cache, plugin constantly clears the cache
-
Hello.
I have been using the plugin for a long time and as far as I noticed this problem started about two years ago.
Problem: Yoast clears the site cache once a day, when I go to the admin panel. If I am not in the admin panel, the cache is not cleared.
There have been a few topics with a similar problem already, so I waited for a solution, but there is still no solution.
I have a question.
In the file class-wpseo-utils.php I deleted these lines (411-425):/**
* Clears the WP or W3TC cache depending on which is used.
*
* @since 1.8.0
*
* @return void
*/
public static function clear_cache() {
if ( function_exists( 'w3tc_pgcache_flush' ) ) {
w3tc_pgcache_flush();
}
elseif ( function_exists( 'wp_cache_clear_cache' ) ) {
wp_cache_clear_cache();
}
}After that, the spontaneous cache removal stopped.
These lines are responsible for clearing the cache by Yoast plugin, what is it for, is it clearing after changing the settings and updating the plugin?
Is it possible to use the plugin without these lines and clear the cache manually when changing Yoast settings if necessary?
I don’t see any other solutions to the problem.
- The topic ‘Yoast + Wp Super Cache, plugin constantly clears the cache’ is closed to new replies.