wp_create_nonce( 'wpsc_dismiss_boost_notice' ), 'boostDismissNonce' => wp_create_nonce( 'wpsc_dismiss_boost_banner' ), 'boostInstallNonce' => wp_create_nonce( 'updates' ), 'boostActivateNonce' => wp_create_nonce( 'activate-boost' ), ) ); } add_action( 'admin_enqueue_scripts', 'wp_super_cache_admin_enqueue_scripts' ); /** * Use the standard WordPress plugin installation ajax handler. */ add_action( 'wp_ajax_wpsc_install_plugin', 'wp_ajax_install_plugin' ); function wp_cache_manager_error_checks() { global $wp_cache_debug, $wp_cache_cron_check, $cache_enabled, $super_cache_enabled, $wp_cache_config_file, $wp_cache_mobile_browsers, $wp_cache_mobile_prefixes, $wp_cache_mobile_browsers, $wp_cache_mobile_enabled, $wp_cache_mod_rewrite; global $dismiss_htaccess_warning, $dismiss_readable_warning, $dismiss_gc_warning, $wp_cache_shutdown_gc, $is_nginx; global $htaccess_path; if ( ! wpsupercache_site_admin() ) { return false; } // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved -- Version is checked before access. if ( PHP_VERSION_ID < 50300 && ( ini_get( 'safe_mode' ) === '1' || strtolower( ini_get( 'safe_mode' ) ) === 'on' ) ) { // @codingStandardsIgnoreLine echo '
' . esc_html__( 'You may experience problems running this plugin because SAFE MODE is enabled.', 'wp-super-cache' ) . '
';
// phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_mode_gidDeprecatedRemoved -- Version is checked before access.
if ( ! ini_get( 'safe_mode_gid' ) ) { // @codingStandardsIgnoreLine
esc_html_e( 'Your server is set up to check the owner of PHP scripts before allowing them to read and write files.', 'wp-super-cache' );
echo '
';
printf( __( 'You or an administrator may be able to make it work by changing the group owner of the plugin scripts to match that of the web server user. The group owner of the %s/cache/ directory must also be changed. See the safe mode manual page for further details.', 'wp-super-cache' ), esc_attr( WP_CONTENT_DIR ) );
} else {
_e( 'You or an administrator must disable this. See the safe mode manual page for further details. This cannot be disabled in a .htaccess file unfortunately. It must be done in the php.ini config file.', 'wp-super-cache' );
}
echo '
" . __( 'A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.', 'wp-super-cache' ) . "
"; echo 'Troubleshooting section of the readme.txt', 'wp-super-cache' ), 'https://wordpress.org/plugins/wp-super-cache/faq/' ); ?>
Troubleshooting section of the readme.txt', 'wp-super-cache' ), 'https://wordpress.org/plugins/wp-super-cache/faq/' ); ?>
define( 'WP_CACHE', true );define( 'WPCACHEHOME', '" . dirname( __DIR__ ) . "/' );this page for instructions on modifying your php.ini.', 'wp-super-cache' ); ?>
%s/wp-cache-config.php and cannot be modified. That file must be writeable by the web server to make any changes.', 'wp-super-cache' ), WPCACHECONFIGPATH ); ?>
This page explains how to change file permissions.', 'wp-super-cache' ); ?>
chmod 666 /wp-cache-config.phpchmod 644 /wp-cache-config.php
this form to enable it.', 'wp-super-cache' ); ?>
chmod 755 /
This page explains how to change file permissions.', 'wp-super-cache' ); ?>
' . esc_html__( 'For best performance you should enable "Mobile device support" or delete the mobile rewrite rules in your .htaccess. Look for the 2 lines with the text "2.0\ MMP|240x320" and delete those.', 'wp-super-cache' ) . '
' . esc_html__( 'This will have no affect on ordinary users but mobile users will see uncached pages.', 'wp-super-cache' ) . '
'; } elseif ( $wp_cache_mod_rewrite && $cache_enabled && $wp_cache_mobile_enabled && $scrules != '' // phpcs:ignore Universal.Operators.StrictComparisons.LooseNotEqual && ( ( '' != $wp_cache_mobile_prefixes // phpcs:ignore Universal.Operators.StrictComparisons.LooseNotEqual && ! str_contains( $scrules, addcslashes( str_replace( ', ', '|', $wp_cache_mobile_prefixes ), ' ' ) ) ) || ( '' != $wp_cache_mobile_browsers // phpcs:ignore Universal.Operators.StrictComparisons.LooseNotEqual && ! str_contains( $scrules, addcslashes( str_replace( ', ', '|', $wp_cache_mobile_browsers ), ' ' ) ) ) ) ) { ?>
# END WPSuperCache and let the plugin regenerate them by reloading this page.', 'wp-super-cache' ), array( 'code' => array() ) ), esc_html( $home_path ) );
?>
# END WPSuperCache. There are two sections that look very similar. Just below the line %%{HTTP:Cookie} !^.*(comment_author_|%2$s|wp-postpass_).*$ add these lines: (do it twice, once for each section)', 'wp-super-cache' ), array( 'code' => array() ) ), esc_html( $home_path ), esc_html( wpsc_get_logged_in_cookie() ) );
?>
Update Mod_Rewrite Rules button.', 'wp-super-cache' ); ?>
here. Unfortunately, WordPress writes to the .htaccess in the install directory, not where your site is served from.
When you update the rewrite rules in this plugin you will have to copy the file to where your site is hosted. This will be fixed in the future.', 'wp-super-cache' ); ?>
zlib.output_compression is enabled. See #21 in the Troubleshooting section of the readme file.", 'wp-super-cache' ) . '' . __( 'Notice: Expert mode caching enabled. Showing Advanced Settings Page by default.', 'wp-super-cache' ) . '
| '; wp_cache_files(); break; case 'preload': wpsc_render_partial( 'preload', compact( 'cache_enabled', 'super_cache_enabled', 'admin_url', 'wp_cache_preload_interval', 'wp_cache_preload_on', 'wp_cache_preload_taxonomies', 'wp_cache_preload_email_me', 'wp_cache_preload_email_volume', 'currently_preloading', 'wp_cache_preload_posts' ) ); break; case 'plugins': wpsc_plugins_tab(); break; case 'debug': global $wp_super_cache_debug, $wp_cache_debug_log, $wp_cache_debug_ip, $wp_cache_debug_ip; global $wp_super_cache_front_page_text, $wp_super_cache_front_page_notification; global $wp_super_cache_advanced_debug, $wp_cache_debug_username, $wp_super_cache_front_page_clear; wpsc_render_partial( 'debug', compact( 'wp_super_cache_debug', 'wp_cache_debug_log', 'wp_cache_debug_ip', 'cache_path', 'valid_nonce', 'wp_cache_config_file', 'wp_super_cache_comments', 'wp_super_cache_front_page_check', 'wp_super_cache_front_page_clear', 'wp_super_cache_front_page_text', 'wp_super_cache_front_page_notification', 'wp_super_cache_advanced_debug', 'wp_cache_debug_username', 'wp_cache_home_path' ) ); break; case 'settings': global $cache_acceptable_files, $wpsc_rejected_cookies, $cache_rejected_uri, $wp_cache_pages; global $cache_max_time, $wp_cache_config_file, $valid_nonce, $super_cache_enabled, $cache_schedule_type, $cache_scheduled_time, $cache_schedule_interval, $cache_time_interval, $cache_gc_email_me, $wp_cache_preload_on; wp_cache_update_rejected_pages(); wp_cache_update_rejected_cookies(); wp_cache_update_rejected_strings(); wp_cache_update_accepted_strings(); wp_cache_time_update(); wpsc_render_partial( 'advanced', compact( 'wp_cache_front_page_checks', 'admin_url', 'cache_enabled', 'super_cache_enabled', 'wp_cache_mod_rewrite', 'is_nginx', 'wp_cache_not_logged_in', 'wp_cache_no_cache_for_get', 'cache_compression', 'cache_rebuild_files', 'wpsc_save_headers', 'wp_supercache_304', 'wp_cache_make_known_anon', 'wp_cache_mfunc_enabled', 'wp_cache_mobile_enabled', 'wp_cache_mobile_browsers', 'wp_cache_disable_utf8', 'wp_cache_clear_on_post_edit', 'wp_cache_front_page_checks', 'wp_cache_refresh_single_only', 'wp_supercache_cache_list', 'wp_cache_mutex_disabled', 'wp_super_cache_late_init', 'cache_page_secret', 'cache_path', 'cache_acceptable_files', 'wpsc_rejected_cookies', 'cache_rejected_uri', 'wp_cache_pages', 'cache_max_time', 'valid_nonce', 'super_cache_enabled', 'cache_schedule_type', 'cache_scheduled_time', 'cache_schedule_interval', 'cache_time_interval', 'cache_gc_email_me', 'wp_cache_mobile_prefixes', 'wp_cache_preload_on' ) ); wpsc_edit_tracking_parameters(); wpsc_edit_rejected_ua(); wpsc_lockdown(); wpsc_restore_settings(); break; case 'easy': default: wpsc_render_partial( 'easy', array( 'admin_url' => $admin_url, 'cache_enabled' => $cache_enabled, 'is_nginx' => $is_nginx, 'wp_cache_mod_rewrite' => $wp_cache_mod_rewrite, 'valid_nonce' => $valid_nonce, 'cache_path' => $cache_path, 'wp_super_cache_comments' => $wp_super_cache_comments, ) ); break; } ?> |
rate us and give feedback.', 'wp-super-cache' ), 'https://wordpress.org/support/plugin/wp-super-cache/reviews?rate=5#new-post' ); ?> %2$s', 'wp-super-cache' ), date( 'M j, Y', $start_date ), number_format( get_option( 'wpsupercache_count' ) ) ); ?> |
' . esc_html__( 'Cache plugins are PHP scripts you\'ll find in a dedicated folder inside the WP Super Cache folder (wp-super-cache/plugins/). They load at the same time as WP Super Cache, and before regular WordPress plugins.', 'wp-super-cache' ) . '
'; echo '' . esc_html__( 'Keep in mind that cache plugins are for advanced users only. To create and manage them, you\'ll need extensive knowledge of both PHP and WordPress actions.', 'wp-super-cache' ) . '
'; echo '' . sprintf( __( 'Warning! Due to the way WordPress upgrades plugins, the ones you upload to the WP Super Cache folder (wp-super-cache/plugins/) will be deleted when you upgrade WP Super Cache. To avoid this loss, load your cache plugins from a different location. When you set $wp_cache_plugins_dir to the new location in wp-config.php, WP Super Cache will look there instead.
You can find additional details in the developer documentation.', 'wp-super-cache' ), 'https://odd.blog/wp-super-cache-developers/' ) . '