';
if ( ! $cache_enabled || ! $super_cache_enabled || true === defined( 'DISABLESUPERCACHEPRELOADING' ) ) {
wp_admin_notice(
esc_html__( 'Preloading of cache disabled. Please make sure simple or expert mode is enabled or talk to your host administrator.', 'wp-super-cache' ),
array(
'type' => 'warning',
)
);
return;
}
$count = wpsc_post_count();
$min_refresh_interval = wpsc_get_minimum_preload_interval();
echo '
';
echo '
' . __( 'This will cache every published post and page on your site. It will create supercache static files so unknown visitors (including bots) will hit a cached page. This will probably help your Google ranking as they are using speed as a metric when judging websites now.', 'wp-super-cache' ) . '
';
echo '
' . __( 'Preloading creates lots of files however. Caching is done from the newest post to the oldest so please consider only caching the newest if you have lots (10,000+) of posts. This is especially important on shared hosting.', 'wp-super-cache' ) . '
';
echo '
' . __( 'In ’Preload Mode’ regular garbage collection will be disabled so that old cache files are not deleted. This is a recommended setting when the cache is preloaded.', 'wp-super-cache' ) . '
';
echo '
';
echo '
' . sprintf( __( 'Refresh preloaded cache files every %s minutes. (0 to disable, minimum %d minutes.)', 'wp-super-cache' ), "", $min_refresh_interval ) . '
';
if ( $count > 100 ) {
$step = (int)( $count / 10 );
$select = "
";
echo '
' . sprintf( __( 'Preload %s posts.', 'wp-super-cache' ), $select ) . '
';
} else {
echo '
';
}
echo '
' . __( 'Preload mode (garbage collection disabled. Recommended.)', 'wp-super-cache' ) . '
';
echo '
' . __( 'Preload tags, categories and other taxonomies.', 'wp-super-cache' ) . '
';
echo __( 'Send me status emails when files are refreshed.', 'wp-super-cache' ) . '
';
if ( !isset( $wp_cache_preload_email_volume ) )
$wp_cache_preload_email_volume = 'none';
echo '
";
if (
wp_next_scheduled( 'wp_cache_preload_hook' )
|| wp_next_scheduled( 'wp_cache_full_preload_hook' )
|| wpsc_is_preload_active()
) {
$currently_preloading = true;
}
echo '
';
echo '
';
wp_nonce_field( 'wp-cache' );
echo '';
echo '
';
echo '