Clearing the cache from an external PHP script
-
Hi, I’d like to clear the W3tc cache via an external php script.
My understanding is that this should work. In fact, it works when WP Super Cache is enabled, but not when W3TC is enabled.
Any pointers?
define( 'WP_USE_THEMES', false ); require('wp-blog-header.php'); if ( function_exists('w3tc_pgcache_flush') ) { w3tc_pgcache_flush(); } else if ( function_exists('wp_cache_clear_cache') ) { wp_cache_clear_cache(); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Clearing the cache from an external PHP script’ is closed to new replies.