Cache flushing on update
-
Hi,
Yoast includes a mecanism that flushes WP Super Cache and W3 Total Cache in _wpseo_activate().
It calls on line 207 of wp_seo_main.php :
WPSEO_Utils::clear_cache();
Which does :
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(); } }
First question : why only those 2 and not WP Rocket and other popular cache plugins ?
Second issue I’ve been having for years : at each update (which are sometimes several in a week), it flushes all the cache, which results in poor performance for websites with thousands of urls.
I’ve been downloading, removing content of clear_cache() then uploading but I must not be the only one in that case.
There is no purpose to flush all website cache just for an update.
Could you provide a hook to deactivate cache flush ? That would be sooooo useful.
Thanks and long life to Yoast.
- The topic ‘Cache flushing on update’ is closed to new replies.