wpsc_update_check()
No Hooks.
Returns
null. Nothing (null).
Usage
wpsc_update_check();
wpsc_update_check() wpsc update check code WPSCache 3.1.0
function wpsc_update_check() {
global $wpsc_version;
if (
! isset( $wpsc_version ) ||
$wpsc_version != 169
) {
wp_cache_setting( 'wpsc_version', 169 );
global $wp_cache_debug_log, $cache_path;
$log_file = $cache_path . str_replace('/', '', str_replace('..', '', $wp_cache_debug_log));
if ( ! file_exists( $log_file ) ) {
return false;
}
@unlink( $log_file );
wp_cache_debug( 'wpsc_update_check: Deleted old log file on plugin update.' );
}
}