From 5b9d2b25d27a90daf9978a3b7f87a41be3011619 Mon Sep 17 00:00:00 2001 From: robjarsen <29106074+robjarsen@users.noreply.github.com> Date: Thu, 7 Dec 2017 18:35:36 -0500 Subject: [PATCH 1/3] PHPCS fixes for wp-cache-config-sample.php --- wp-cache-config-sample.php | 138 ++++++++++++++++++++----------------- 1 file changed, 73 insertions(+), 65 deletions(-) diff --git a/wp-cache-config-sample.php b/wp-cache-config-sample.php index f943169c..4aad03b8 100644 --- a/wp-cache-config-sample.php +++ b/wp-cache-config-sample.php @@ -5,23 +5,31 @@ See wp-cache.php for author details. */ -if ( ! defined('WPCACHEHOME') ) +if ( ! defined( 'WPCACHEHOME' ) ) { define( 'WPCACHEHOME', WP_PLUGIN_DIR . '/wp-super-cache/' ); +} -$cache_compression = 0; // Super cache compression -$cache_enabled = false; +$cache_compression = 0; // Super cache compression +$cache_enabled = false; $super_cache_enabled = true; -$cache_max_time = 3600; //in seconds -//$use_flock = true; // Set it true or false if you know what to use -$cache_path = WP_CONTENT_DIR . '/cache/'; +$cache_max_time = 3600; // in seconds +// $use_flock = true; // Set it true or false if you know what to use +$cache_path = WP_CONTENT_DIR . '/cache/'; $file_prefix = 'wp-cache-'; -$ossdlcdn = 0; +$ossdlcdn = 0; // Array of files that have 'wp-' but should still be cached $cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' ); -$cache_rejected_uri = array('wp-.*\\.php', 'index\\.php'); -$cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex' ); +$cache_rejected_uri = array( 'wp-.*\\.php', 'index\\.php' ); +$cache_rejected_user_agent = array( + 0 => 'bot', + 1 => 'ia_archive', + 2 => 'slurp', + 3 => 'crawl', + 4 => 'spider', + 5 => 'Yandex', +); $cache_rebuild_files = 1; @@ -33,73 +41,73 @@ // Just modify it if you have conflicts with semaphores $sem_id = 5419; -if ( '/' != substr($cache_path, -1)) { +if ( '/' != substr( $cache_path, -1 ) ) { $cache_path .= '/'; } -$wp_cache_mobile = 0; +$wp_cache_mobile = 0; $wp_cache_mobile_whitelist = 'Stand Alone/QNws'; -$wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; +$wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; // change to relocate the supercache plugins directory $wp_cache_plugins_dir = WPCACHEHOME . 'plugins'; // set to 1 to do garbage collection during normal process shutdown instead of wp-cron -$wp_cache_shutdown_gc = 0; +$wp_cache_shutdown_gc = 0; $wp_super_cache_late_init = 0; // uncomment the next line to enable advanced debugging features -$wp_super_cache_advanced_debug = 0; -$wp_super_cache_front_page_text = ''; -$wp_super_cache_front_page_clear = 0; -$wp_super_cache_front_page_check = 0; +$wp_super_cache_advanced_debug = 0; +$wp_super_cache_front_page_text = ''; +$wp_super_cache_front_page_clear = 0; +$wp_super_cache_front_page_check = 0; $wp_super_cache_front_page_notification = '0'; -$wp_cache_object_cache = 0; -$wp_cache_anon_only = 0; -$wp_supercache_cache_list = 0; -$wp_cache_debug_to_file = 0; -$wp_super_cache_debug = 0; -$wp_cache_debug_level = 5; -$wp_cache_debug_ip = ''; -$wp_cache_debug_log = ''; -$wp_cache_debug_email = ''; -$wp_cache_pages[ "search" ] = 0; -$wp_cache_pages[ "feed" ] = 0; -$wp_cache_pages[ "category" ] = 0; -$wp_cache_pages[ "home" ] = 0; -$wp_cache_pages[ "frontpage" ] = 0; -$wp_cache_pages[ "tag" ] = 0; -$wp_cache_pages[ "archives" ] = 0; -$wp_cache_pages[ "pages" ] = 0; -$wp_cache_pages[ "single" ] = 0; -$wp_cache_pages[ "author" ] = 0; -$wp_cache_hide_donation = 0; -$wp_cache_not_logged_in = 0; -$wp_cache_clear_on_post_edit = 0; -$wp_cache_hello_world = 0; -$wp_cache_mobile_enabled = 0; -$wp_cache_cron_check = 0; -$wp_cache_mfunc_enabled = 0; -$wp_cache_make_known_anon = 0; -$wp_cache_refresh_single_only = 0; -$wp_cache_mod_rewrite = 0; -$wp_supercache_304 = 0; -$wp_cache_front_page_checks = 0; -$wp_cache_disable_utf8 = 0; -$wp_cache_no_cache_for_get = 0; -$cache_scheduled_time = "00:00"; -$wp_cache_preload_interval = 600; -$cache_schedule_type = 'interval'; -$wp_cache_preload_posts = 0; -$wp_cache_preload_on = 0; -$wp_cache_preload_taxonomies = 0; -$wp_cache_preload_email_me = 0; +$wp_cache_object_cache = 0; +$wp_cache_anon_only = 0; +$wp_supercache_cache_list = 0; +$wp_cache_debug_to_file = 0; +$wp_super_cache_debug = 0; +$wp_cache_debug_level = 5; +$wp_cache_debug_ip = ''; +$wp_cache_debug_log = ''; +$wp_cache_debug_email = ''; +$wp_cache_pages['search'] = 0; +$wp_cache_pages['feed'] = 0; +$wp_cache_pages['category'] = 0; +$wp_cache_pages['home'] = 0; +$wp_cache_pages['frontpage'] = 0; +$wp_cache_pages['tag'] = 0; +$wp_cache_pages['archives'] = 0; +$wp_cache_pages['pages'] = 0; +$wp_cache_pages['single'] = 0; +$wp_cache_pages['author'] = 0; +$wp_cache_hide_donation = 0; +$wp_cache_not_logged_in = 0; +$wp_cache_clear_on_post_edit = 0; +$wp_cache_hello_world = 0; +$wp_cache_mobile_enabled = 0; +$wp_cache_cron_check = 0; +$wp_cache_mfunc_enabled = 0; +$wp_cache_make_known_anon = 0; +$wp_cache_refresh_single_only = 0; +$wp_cache_mod_rewrite = 0; +$wp_supercache_304 = 0; +$wp_cache_front_page_checks = 0; +$wp_cache_disable_utf8 = 0; +$wp_cache_no_cache_for_get = 0; +$cache_scheduled_time = '00:00'; +$wp_cache_preload_interval = 600; +$cache_schedule_type = 'interval'; +$wp_cache_preload_posts = 0; +$wp_cache_preload_on = 0; +$wp_cache_preload_taxonomies = 0; +$wp_cache_preload_email_me = 0; $wp_cache_preload_email_volume = 'none'; -$wp_cache_mobile_prefixes = ''; -$cached_direct_pages = array(); -$wpsc_served_header = false; -$cache_gc_email_me = 0; -$wpsc_save_headers = 0; -$cache_schedule_interval = 'daily'; -$wp_super_cache_comments = 1; -?> +$wp_cache_mobile_prefixes = ''; +$cached_direct_pages = array(); +$wpsc_served_header = false; +$cache_gc_email_me = 0; +$wpsc_save_headers = 0; +$cache_schedule_interval = 'daily'; +$wp_super_cache_comments = 1; + From d446d52bfb5c55e35a55b207719ebd338ce31e77 Mon Sep 17 00:00:00 2001 From: robjarsen <29106074+robjarsen@users.noreply.github.com> Date: Thu, 7 Dec 2017 20:29:54 -0500 Subject: [PATCH 2/3] Update wp-cache-config-sample.php --- wp-cache-config-sample.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-cache-config-sample.php b/wp-cache-config-sample.php index 4aad03b8..0dd7d963 100644 --- a/wp-cache-config-sample.php +++ b/wp-cache-config-sample.php @@ -95,7 +95,7 @@ $wp_cache_front_page_checks = 0; $wp_cache_disable_utf8 = 0; $wp_cache_no_cache_for_get = 0; -$cache_scheduled_time = '00:00'; +$cache_scheduled_time = "00:00"; $wp_cache_preload_interval = 600; $cache_schedule_type = 'interval'; $wp_cache_preload_posts = 0; From a2fbe605fa055b6b92aab32d0825ea3d8aeb2813 Mon Sep 17 00:00:00 2001 From: robjarsen <29106074+robjarsen@users.noreply.github.com> Date: Fri, 8 Dec 2017 12:20:17 -0500 Subject: [PATCH 3/3] Update wp-cache-config-sample.php --- wp-cache-config-sample.php | 129 ++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 68 deletions(-) diff --git a/wp-cache-config-sample.php b/wp-cache-config-sample.php index 0dd7d963..6a217c32 100644 --- a/wp-cache-config-sample.php +++ b/wp-cache-config-sample.php @@ -9,27 +9,20 @@ define( 'WPCACHEHOME', WP_PLUGIN_DIR . '/wp-super-cache/' ); } -$cache_compression = 0; // Super cache compression -$cache_enabled = false; +$cache_compression = 0; // Super cache compression +$cache_enabled = false; $super_cache_enabled = true; -$cache_max_time = 3600; // in seconds +$cache_max_time = 3600; // in seconds // $use_flock = true; // Set it true or false if you know what to use -$cache_path = WP_CONTENT_DIR . '/cache/'; +$cache_path = WP_CONTENT_DIR . '/cache/'; $file_prefix = 'wp-cache-'; -$ossdlcdn = 0; +$ossdlcdn = 0; // Array of files that have 'wp-' but should still be cached $cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' ); -$cache_rejected_uri = array( 'wp-.*\\.php', 'index\\.php' ); -$cache_rejected_user_agent = array( - 0 => 'bot', - 1 => 'ia_archive', - 2 => 'slurp', - 3 => 'crawl', - 4 => 'spider', - 5 => 'Yandex', -); +$cache_rejected_uri = array( 'wp-.*\\.php', 'index\\.php' ); +$cache_rejected_user_agent = array( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex', ); $cache_rebuild_files = 1; @@ -45,69 +38,69 @@ $cache_path .= '/'; } -$wp_cache_mobile = 0; +$wp_cache_mobile = 0; $wp_cache_mobile_whitelist = 'Stand Alone/QNws'; -$wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; +$wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; // change to relocate the supercache plugins directory $wp_cache_plugins_dir = WPCACHEHOME . 'plugins'; // set to 1 to do garbage collection during normal process shutdown instead of wp-cron -$wp_cache_shutdown_gc = 0; +$wp_cache_shutdown_gc = 0; $wp_super_cache_late_init = 0; // uncomment the next line to enable advanced debugging features -$wp_super_cache_advanced_debug = 0; -$wp_super_cache_front_page_text = ''; -$wp_super_cache_front_page_clear = 0; -$wp_super_cache_front_page_check = 0; +$wp_super_cache_advanced_debug = 0; +$wp_super_cache_front_page_text = ''; +$wp_super_cache_front_page_clear = 0; +$wp_super_cache_front_page_check = 0; $wp_super_cache_front_page_notification = '0'; -$wp_cache_object_cache = 0; -$wp_cache_anon_only = 0; -$wp_supercache_cache_list = 0; -$wp_cache_debug_to_file = 0; -$wp_super_cache_debug = 0; -$wp_cache_debug_level = 5; -$wp_cache_debug_ip = ''; -$wp_cache_debug_log = ''; -$wp_cache_debug_email = ''; -$wp_cache_pages['search'] = 0; -$wp_cache_pages['feed'] = 0; -$wp_cache_pages['category'] = 0; -$wp_cache_pages['home'] = 0; -$wp_cache_pages['frontpage'] = 0; -$wp_cache_pages['tag'] = 0; -$wp_cache_pages['archives'] = 0; -$wp_cache_pages['pages'] = 0; -$wp_cache_pages['single'] = 0; -$wp_cache_pages['author'] = 0; -$wp_cache_hide_donation = 0; -$wp_cache_not_logged_in = 0; -$wp_cache_clear_on_post_edit = 0; -$wp_cache_hello_world = 0; -$wp_cache_mobile_enabled = 0; -$wp_cache_cron_check = 0; -$wp_cache_mfunc_enabled = 0; -$wp_cache_make_known_anon = 0; -$wp_cache_refresh_single_only = 0; -$wp_cache_mod_rewrite = 0; -$wp_supercache_304 = 0; -$wp_cache_front_page_checks = 0; -$wp_cache_disable_utf8 = 0; -$wp_cache_no_cache_for_get = 0; -$cache_scheduled_time = "00:00"; -$wp_cache_preload_interval = 600; -$cache_schedule_type = 'interval'; -$wp_cache_preload_posts = 0; -$wp_cache_preload_on = 0; -$wp_cache_preload_taxonomies = 0; -$wp_cache_preload_email_me = 0; +$wp_cache_object_cache = 0; +$wp_cache_anon_only = 0; +$wp_supercache_cache_list = 0; +$wp_cache_debug_to_file = 0; +$wp_super_cache_debug = 0; +$wp_cache_debug_level = 5; +$wp_cache_debug_ip = ''; +$wp_cache_debug_log = ''; +$wp_cache_debug_email = ''; +$wp_cache_pages['search'] = 0; +$wp_cache_pages['feed'] = 0; +$wp_cache_pages['category'] = 0; +$wp_cache_pages['home'] = 0; +$wp_cache_pages['frontpage'] = 0; +$wp_cache_pages['tag'] = 0; +$wp_cache_pages['archives'] = 0; +$wp_cache_pages['pages'] = 0; +$wp_cache_pages['single'] = 0; +$wp_cache_pages['author'] = 0; +$wp_cache_hide_donation = 0; +$wp_cache_not_logged_in = 0; +$wp_cache_clear_on_post_edit = 0; +$wp_cache_hello_world = 0; +$wp_cache_mobile_enabled = 0; +$wp_cache_cron_check = 0; +$wp_cache_mfunc_enabled = 0; +$wp_cache_make_known_anon = 0; +$wp_cache_refresh_single_only = 0; +$wp_cache_mod_rewrite = 0; +$wp_supercache_304 = 0; +$wp_cache_front_page_checks = 0; +$wp_cache_disable_utf8 = 0; +$wp_cache_no_cache_for_get = 0; +$cache_scheduled_time = "00:00"; +$wp_cache_preload_interval = 600; +$cache_schedule_type = 'interval'; +$wp_cache_preload_posts = 0; +$wp_cache_preload_on = 0; +$wp_cache_preload_taxonomies = 0; +$wp_cache_preload_email_me = 0; $wp_cache_preload_email_volume = 'none'; -$wp_cache_mobile_prefixes = ''; -$cached_direct_pages = array(); -$wpsc_served_header = false; -$cache_gc_email_me = 0; -$wpsc_save_headers = 0; -$cache_schedule_interval = 'daily'; -$wp_super_cache_comments = 1; +$wp_cache_mobile_prefixes = ''; +$cached_direct_pages = array(); +$wpsc_served_header = false; +$cache_gc_email_me = 0; +$wpsc_save_headers = 0; +$cache_schedule_interval = 'daily'; +$wp_super_cache_comments = 1;