wp_super_cache_enable()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_super_cache_enable();
wp_super_cache_enable() wp super cache enable code WPSCache 1.12.4
function wp_super_cache_enable() { global $supercachedir, $wp_cache_config_file, $super_cache_enabled; if ( $super_cache_enabled ) { wp_cache_debug( 'wp_super_cache_enable: already enabled' ); return true; } wp_cache_setting( 'super_cache_enabled', true ); wp_cache_debug( 'wp_super_cache_enable: enable cache' ); $super_cache_enabled = true; if ( ! $supercachedir ) { $supercachedir = get_supercache_dir(); } if ( is_dir( $supercachedir . '.disabled' ) ) { if ( is_dir( $supercachedir ) ) { prune_super_cache( $supercachedir . '.disabled', true ); @unlink( $supercachedir . '.disabled' ); } else { @rename( $supercachedir . '.disabled', $supercachedir ); } } }