wpsc_preload_notification_scripts()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wpsc_preload_notification_scripts();

Code of wpsc_preload_notification_scripts() WPSCache 1.9

function wpsc_preload_notification_scripts() {
	global $cache_path;
	if (
		isset( $_GET['page'] ) && $_GET['page'] === 'wpsupercache' &&
		isset( $_GET['tab'] ) && $_GET['tab'] === 'preload' &&
		@file_exists( $cache_path . 'preload_permalink.txt' )
	) {
		wp_enqueue_script( 'preload-notification', plugins_url( '/preload-notification.js', __FILE__ ), array('jquery'), '1.0', 1 );
		wp_localize_script( 'preload-notification', 'wpsc_preload_ajax', array( 'preload_permalink_url' => home_url( str_replace( $_SERVER['DOCUMENT_ROOT'], '', $cache_path ) . '/preload_permalink.txt' ) ) );
	}
}