wpsc_reset_preload_settings()
This function will reset all preload settings
Hooks from the function
Returns
null. Nothing (null).
Usage
wpsc_reset_preload_settings();
wpsc_reset_preload_settings() wpsc reset preload settings code WPSCache 3.1.1
function wpsc_reset_preload_settings() {
global $cache_path;
$mutex = $cache_path . 'preload_mutex.tmp';
wp_delete_file( $mutex );
wp_delete_file( $cache_path . 'stop_preload.txt' );
wpsc_reset_preload_counter();
$taxonomies = apply_filters(
'wp_cache_preload_taxonomies',
array(
'post_tag' => 'tag',
'category' => 'category',
)
);
foreach ( $taxonomies as $taxonomy => $path ) {
$taxonomy_filename = $cache_path . 'taxonomy_' . $taxonomy . '.txt';
wp_delete_file( $taxonomy_filename );
}
}