wpsupercache_deactivate()
No Hooks.
Return
null
. Nothing (null).
Usage
wpsupercache_deactivate();
wpsupercache_deactivate() wpsupercache deactivate code WPSCache 1.12.4
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 delete_user_option( get_current_user_id(), 'wpsc_dismissed_boost_banner' ); }