wpsc_reset_preload_settings()WPSCache 1.0

This function will reset all preload settings

Hooks from the function

Return

null. Nothing (null).

Usage

wpsc_reset_preload_settings();

wpsc_reset_preload_settings() code WPSCache 1.12.4

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 );
	}
}