Created
November 6, 2012 20:47
-
-
Save lanesgists/4027412 to your computer and use it in GitHub Desktop.
PHP: WP flush W3TC Object Cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( defined( 'W3TC_DIR' ) && class_exists( 'W3_ObjectCache' ) ) { | |
require_once W3TC_DIR . '/lib/W3/ObjectCache.php'; | |
$w3_objectcache = &W3_ObjectCache::instance(); | |
$w3_objectcache->flush(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment