wpsupercache_deactivate() WPSCache 1.0
No Hooks.
Return
Null. Nothing.
Usage
wpsupercache_deactivate();
Code of wpsupercache_deactivate() wpsupercache deactivate WPSCache 1.7.1
function wpsupercache_deactivate() {
global $wp_cache_config_file, $wpsc_advanced_cache_filename, $cache_path;
wpsc_remove_advanced_cache();
if ( ! empty( $cache_path ) ) {
prune_super_cache( $cache_path, true );
wp_cache_remove_index();
@unlink( $cache_path . '.htaccess' );
@unlink( $cache_path . 'meta' );
@unlink( $cache_path . 'supercache' );
}
wp_clear_scheduled_hook( 'wp_cache_check_site_hook' );
wp_clear_scheduled_hook( 'wp_cache_gc' );
wp_clear_scheduled_hook( 'wp_cache_gc_watcher' );
wp_cache_replace_line('^ *\$cache_enabled', '$cache_enabled = false;', $wp_cache_config_file);
wp_cache_disable_plugin( false ); // don't delete configuration file
}