wpsc_init() WPSCache 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wpsc_init();
Код wpsc_init() wpsc init WPSCache 1.7.1
function wpsc_init() {
global $wp_cache_config_file, $wp_cache_config_file_sample, $wpsc_advanced_cache_dist_filename, $wp_cache_check_wp_config, $wpsc_advanced_cache_filename;
$wp_cache_config_file = WP_CONTENT_DIR . '/wp-cache-config.php';
if ( !defined( 'WPCACHEHOME' ) ) {
define( 'WPCACHEHOME', dirname( __FILE__ ) . '/' );
$wp_cache_config_file_sample = WPCACHEHOME . 'wp-cache-config-sample.php';
$wpsc_advanced_cache_dist_filename = WPCACHEHOME . 'advanced-cache.php';
} elseif ( realpath( WPCACHEHOME ) != realpath( dirname( __FILE__ ) ) ) {
$wp_cache_config_file_sample = dirname( __FILE__ ) . '/wp-cache-config-sample.php';
$wpsc_advanced_cache_dist_filename = dirname( __FILE__ ) . '/advanced-cache.php';
if ( ! defined( 'ADVANCEDCACHEPROBLEM' ) ) {
define( 'ADVANCEDCACHEPROBLEM', 1 ); // force an update of WPCACHEHOME
}
} else {
$wp_cache_config_file_sample = WPCACHEHOME . 'wp-cache-config-sample.php';
$wpsc_advanced_cache_dist_filename = WPCACHEHOME . 'advanced-cache.php';
}
$wpsc_advanced_cache_filename = WP_CONTENT_DIR . '/advanced-cache.php';
if ( !defined( 'WP_CACHE' ) || ( defined( 'WP_CACHE' ) && constant( 'WP_CACHE' ) == false ) ) {
$wp_cache_check_wp_config = true;
}
}