wpsc_create_stop_preload_flag()
The preload process checks for a file called stop_preload.txt and will stop if found. This function creates that file.
No Hooks.
Returns
null. Nothing (null).
Usage
wpsc_create_stop_preload_flag();
wpsc_create_stop_preload_flag() wpsc create stop preload flag code WPSCache 3.1.0
function wpsc_create_stop_preload_flag() {
global $cache_path;
// phpcs:ignore -- WordPress.WP.AlternativeFunctions.file_system_read_fopen WordPress.PHP.NoSilencedErrors.Discouraged
$fp = @fopen( $cache_path . 'stop_preload.txt', 'w' );
// phpcs:ignore -- WordPress.WP.AlternativeFunctions.file_system_operations_fclose WordPress.PHP.NoSilencedErrors.Discouraged
@fclose( $fp );
}