main_instance->get_cloudflare_api_zone_id() == '' && count($zone_id_list) > 0 ) $step_settings = 2; if( $this->main_instance->get_cloudflare_api_zone_id() != '' ) $step_settings = 3; $switch_counter = 0; $tab_active = isset($_REQUEST['swcfpc_tab']) ? $_REQUEST['swcfpc_tab'] : false; ?>

main_instance->get_plugin_wp_content_directory() ) ): ?>

main_instance->get_plugin_wp_content_directory() ); ?>

0 ): ?>

0 ): ?>

1
2
3


  1. Create Token > Custom Token > Get started', 'wp-cloudflare-page-cache'); ?>
    • Account - Account Settings - Read
    • Account - Worker Scripts - Edit
    • Zone - Cache Purge - Purge
    • Zone - Page Rules - Edit
    • Zone - Zone Settings - Edit
    • Zone - Zone - Edit
    • Zone - Worker Routes - Edit
    • Include - All accounts
    • Include - Specific zone - your domain name
1
2
3

objects['cache_controller']->is_cache_enabled() ): ?>
1
2
3

main_instance->get_single_config('cf_purge_only_html', 0) > 0 ): ?>
2 ): ?>

main_instance->get_single_config('log_enabled', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('log_enabled', 0) <= 0 ) echo 'checked'; ?>/>
1 ): ?> main_instance->get_single_config('cf_auth_mode', SWCFPC_AUTH_MODE_API_KEY) == SWCFPC_AUTH_MODE_API_KEY ): ?>
2 ): ?>

: .
main_instance->get_single_config('cf_auto_purge', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_auto_purge_all', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_404', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_single_post', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_pages', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_front_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_home', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_archives', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_tags', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_category', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_feeds', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_search_pages', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_author_pages', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_amp', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_ajax', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_query_var', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_wp_json_rest', 0) > 0 ? 'checked' : ''; ?> />

: .
main_instance->get_single_config('cf_bypass_sitemap', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_file_robots', 0) > 0 ? 'checked' : ''; ?> /> -
: /my-page
/my-main-page/my-sub-page
/my-main-page*
main_instance->get_single_config('cf_strip_cookies', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_strip_cookies', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_auto_purge_on_comments', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_auto_purge_on_comments', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_auto_purge_on_upgrader_process_complete', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_auto_purge_on_upgrader_process_complete', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_cache_control_htaccess', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_cache_control_htaccess', 0) <= 0 ) echo 'checked'; ?> />

X-WP-CF-Super-Cache-Cache-Control response header are not the same of the ones in Cache-Control response header, activate this option.', 'wp-cloudflare-page-cache'); ?>

:

: .
Read here: by default, all back-end URLs are not cached thanks to some response headers, but if for some circumstances your backend pages are still cached, you can enable this option which will add an additional page rule on Cloudflare to force cache bypassing for the whole Wordpress backend directly from Cloudflare. This option will be ignored if worker mode is enabled.', 'wp-cloudflare-page-cache'); ?>
main_instance->get_single_config('cf_bypass_backend_page_rule', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_bypass_backend_page_rule', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config("cf_purge_only_html", 0) > 0 ): ?>

main_instance->get_single_config('cf_purge_only_html', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_purge_only_html', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_disable_cache_purging_queue', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_disable_cache_purging_queue', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_woker_enabled', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_woker_enabled', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_auth_mode', SWCFPC_AUTH_MODE_API_KEY) == SWCFPC_AUTH_MODE_API_TOKEN): ?>
' . __( 'Zone - Worker Routes - Edit', 'wp-cloudflare-page-cache' ) . '', '' . __( 'Account - Worker Scripts - Edit', 'wp-cloudflare-page-cache' ) . '' ); ?>

Workers section of your domain on Cloudflare, click on Edit near to Worker swcfpc_worker than select Fail open as Request limit failure mode and click on Save', 'wp-cloudflare-page-cache'); ?>


:

objects['fallback_cache']->fallback_cache_is_wp_config_writable() ): ?>
objects['fallback_cache']->fallback_cache_is_wp_content_writable() ): ?>
main_instance->get_single_config('cf_fallback_cache', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_fallback_cache', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_fallback_cache_auto_purge', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_fallback_cache_auto_purge', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_fallback_cache_curl', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_fallback_cache_curl', 0) <= 0 ) echo 'checked'; ?> />
: /my-page
/my-main-page/my-sub-page
/my-main-page*

cache-control, set-cookie, X-WP-CF-Super-Cache*
main_instance->get_single_config('cf_fallback_cache_save_headers', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_fallback_cache_save_headers', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_fallback_cache_prevent_cache_urls_without_trailing_slash', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_fallback_cache_prevent_cache_urls_without_trailing_slash', 0) <= 0 ) echo 'checked'; ?>/>


: .
main_instance->get_single_config('cf_browser_caching_htaccess', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_browser_caching_htaccess', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_preloader', 1) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_preloader', 1) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_preloader_start_on_purge', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_preloader_start_on_purge', 0) <= 0 ) echo 'checked'; ?> />
0 ): foreach( $wordpress_menus as $single_nav_menu ): ?>
term_id, $this->main_instance->get_single_config('cf_preloader_nav_menus', array())) ? 'checked' : ''; ?> /> %s WP menu', 'wp-cloudflare-page-cache'), $single_nav_menu->name ); ?>
main_instance->get_single_config('cf_preload_last_urls', 0) > 0 ? 'checked' : ''; ?> />
: /post-sitemap.xml
/page-sitemap.xml

:

objects['cache_controller']->can_i_start_preloader() ): ?>

main_instance->get_single_config('cf_varnish_support', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_varnish_support', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_varnish_cw', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_varnish_cw', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_varnish_auto_purge', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_varnish_auto_purge', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_opcache_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_opcache_purge_on_flush', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_object_cache_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_object_cache_purge_on_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_bypass_woo_cart_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_woo_checkout_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_woo_checkout_pay_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_woo_product_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_shop_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_product_tax_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_product_tag_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_product_cat_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_pages', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_woo_account_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_auto_purge_woo_product_page', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_auto_purge_woo_product_page', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_auto_purge_woo_scheduled_sales', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_auto_purge_woo_scheduled_sales', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_bypass_edd_checkout_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_edd_purchase_history_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_edd_login_redirect_page', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_bypass_edd_success_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_bypass_edd_failure_page', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_auto_purge_edd_payment_add', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_auto_purge_edd_payment_add', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_autoptimize_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_autoptimize_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_w3tc_purge_on_flush_all', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_w3tc_purge_on_flush_dbcache', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_w3tc_purge_on_flush_fragmentcache', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_w3tc_purge_on_flush_objectcache', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_w3tc_purge_on_flush_posts', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_w3tc_purge_on_flush_minfy', 0) > 0 ? 'checked' : ''; ?> />

main_instance->get_single_config('cf_litespeed_purge_on_cache_flush', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_litespeed_purge_on_ccss_flush', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_litespeed_purge_on_cssjs_flush', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_litespeed_purge_on_object_cache_flush', 0) > 0 ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_litespeed_purge_on_single_post_flush', 0) > 0 ? 'checked' : ''; ?> />

main_instance->get_single_config('cf_hummingbird_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_hummingbird_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_wp_optimize_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_wp_optimize_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_flypress_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_flypress_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_wp_rocket_purge_on_domain_flush', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_post_flush', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_cache_dir_flush', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_clean_files', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_clean_cache_busting', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_clean_minify', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_ccss_generation_complete', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_purge_on_rucss_job_complete', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_wp_rocket_disable_cache', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_wp_rocket_disable_cache', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_wpacu_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_wpacu_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_nginx_helper_purge_on_cache_flush', 1) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_nginx_helper_purge_on_cache_flush', 1) <= 0 ) echo 'checked'; ?>/>

main_instance->get_single_config('cf_wp_performance_purge_on_cache_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_wp_performance_purge_on_cache_flush', 0) <= 0 ) echo 'checked'; ?>/>

main_instance->get_single_config('cf_yasr_purge_on_rating', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_yasr_purge_on_rating', 0) <= 0 ) echo 'checked'; ?> />

main_instance->get_single_config('cf_spl_purge_on_flush_all', 0) > 0 ? 'checked' : ''; ?> /> -
main_instance->get_single_config('cf_spl_purge_on_flush_single_post', 0) > 0 ? 'checked' : ''; ?> /> -

objects['cache_controller']->is_siteground_supercacher_enabled() ): ?>

main_instance->get_single_config('cf_siteground_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_siteground_purge_on_flush', 0) <= 0 ) echo 'checked'; ?> />

objects['cache_controller']->can_wpengine_cache_be_purged() ): ?>

main_instance->get_single_config('cf_wpengine_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_wpengine_purge_on_flush', 0) <= 0 ) echo 'checked'; ?>/>

objects['cache_controller']->can_spinupwp_cache_be_purged() ): ?>

main_instance->get_single_config('cf_spinupwp_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_spinupwp_purge_on_flush', 0) <= 0 ) echo 'checked'; ?>/>

objects['cache_controller']->can_kinsta_cache_be_purged() ): ?>

main_instance->get_single_config('cf_kinsta_purge_on_flush', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_kinsta_purge_on_flush', 0) <= 0 ) echo 'checked'; ?>/>


Read here: after the import you will be forced to re-enter the authentication data to Cloudflare and to manually enable the cache.', 'wp-cloudflare-page-cache'); ?>

:

main_instance->get_single_config('cf_remove_purge_option_toolbar', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_remove_purge_option_toolbar', 0) <= 0 ) echo 'checked'; ?> />
main_instance->get_single_config('cf_disable_single_metabox', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_disable_single_metabox', 0) <= 0 ) echo 'checked'; ?>/>
main_instance->get_single_config('cf_seo_redirect', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_seo_redirect', 0) <= 0 ) echo 'checked'; ?>/>
0 ): foreach( $wordpress_roles as $single_role_name ): if($single_role_name == 'administrator') continue; ?>
main_instance->get_single_config('cf_purge_roles', array())) ? 'checked' : ''; ?> />
main_instance->get_single_config('cf_prefetch_urls_viewport', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_prefetch_urls_viewport', 0) <= 0 ) echo 'checked'; ?>/>


Prevent the following URIs to be cached will not be prefetched.', 'wp-cloudflare-page-cache'); ?>

main_instance->get_single_config('cf_prefetch_urls_on_hover', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_prefetch_urls_on_hover', 0) <= 0 ) echo 'checked'; ?>/>


Prevent the following URIs to be cached will not be prefetched.', 'wp-cloudflare-page-cache'); ?>

main_instance->get_single_config('cf_remove_cache_buster', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('cf_remove_cache_buster', 0) <= 0 ) echo 'checked'; ?>/>

DO NOT ENABLE this option unless you are an advanced user confortable with creating advanced Cloudflare rules. Otherwise caching system will break on your website.', 'wp-cloudflare-page-cache'); ?>

this implementation guide first before enabling this option.', 'wp-cloudflare-page-cache'); ?>

main_instance->get_single_config('keep_settings_on_deactivation', 0) > 0 ) echo 'checked'; ?>/> main_instance->get_single_config('keep_settings_on_deactivation', 0) <= 0 ) echo 'checked'; ?>/>

swcfpc=1 parameter I see to every internal links when I\'m logged in?', 'wp-cloudflare-page-cache'); ?>

Reset all button.', 'wp-cloudflare-page-cache'); ?>

Strip response cookies on pages that should be cached.', 'wp-cloudflare-page-cache'); ?>

Purge HTML pages only option is enabled, clicking on the PURGE CACHE button only HTML pages already in cache will be deleted from Cloudflare\'s cache.', 'wp-cloudflare-page-cache'); ?>

Force purge everything', 'wp-cloudflare-page-cache'); ?>

If you chose the API Key as the authentication mode, make sure you have entered the correct email address associated with your Cloudflare account and the correct Global API key (not your Cloudflare password!).', 'wp-cloudflare-page-cache'); ?>

If you are chose the API Token as the authentication mode, make sure you have entered the correct token, with all the required permissions, and the domain name exactly as it appears in your Cloudflare account.', 'wp-cloudflare-page-cache'); ?>

Cache Everything page rule already exists for your domain. If yes, delete it. Now from the settings page of Super Page Cache for Cloudflare, disable and re-enable the cache.', 'wp-cloudflare-page-cache'); ?>

API Token, check that you entered the domain name exactly as on Cloudflare', 'wp-cloudflare-page-cache'); ?>

  1. https://stackoverflow.com/a/8028987/2308992

mu-plugin is sending the header before advanced-cache.php can. That\'s causing the issue. We have thoroughly tested this.', 'wp-cloudflare-page-cache'); ?>

Prevent the following URIs to be cached, then save, purge the cache, wait 30 seconds and retry.', 'wp-cloudflare-page-cache'); ?>

Overwrite the cache-control header for Wordpress\'s pages using web server rules. You can keep this option enabled for Litespeed Server versions equal or higher then 6.0RC1', 'wp-cloudflare-page-cache'); ?>

Fallback Cache system provided by this plugin is turned OFF.', 'wp-cloudflare-page-cache'); ?>

x-kinsta-cache header is of status MISS. For the second request when Cloudflare serves the page from it\'s own CDN Edge servers without sending the request to the origin server, it keeps showing the x-kinsta-cache cache header as MISS. Because when Cloudflare cached the page the response header was MISS but Kinsta caching system has already cached it upon receiving the first request.', 'wp-cloudflare-page-cache'); ?>

x-kinsta-cache showing as HIT, because this time the request is going to your origin server and you are seeing the updated response headers that is being served by the server.', 'wp-cloudflare-page-cache'); ?>

  1. Litespeed Cache > Cache', 'wp-cloudflare-page-cache'); ?>
  2. OFF near Enable Cache', 'wp-cloudflare-page-cache'); ?>
  3. Save Changes button', 'wp-cloudflare-page-cache'); ?>

Then:

  1. Third Party tab', 'wp-cloudflare-page-cache'); ?>
  2. Litespeed Cache Settings section', 'wp-cloudflare-page-cache'); ?>
  3. Automatically purge the cache when LiteSpeed Cache flushs all caches', 'wp-cloudflare-page-cache'); ?>

Enable 404 fallbacks of Autoptimize.', 'wp-cloudflare-page-cache'); ?>

this GitHub Gist. This will guide you to do all the things necessary in order to use WP Rocket with this plugin. Here is a summery of what you need to do:', 'wp-cloudflare-page-cache'); ?>

  1. /wp-content/mu-plugins/ folder) provided in the GitHub Gist (link given above).', 'wp-cloudflare-page-cache'); ?>
  2. Fallback Cache option (If you want to use disk level fallback cache)', 'wp-cloudflare-page-cache'); ?>
  3. Third Party tab', 'wp-cloudflare-page-cache'); ?>
  4. WP-Rocket Cache Settings section and enable the Disable WP Rocket page cache option', 'wp-cloudflare-page-cache'); ?>

Cache-Control response header is different from that of the X-WP-CF-Super-Cache-Cache-Control response header (make sure it is the same).', 'wp-cloudflare-page-cache'); ?>

LiteSpeed Server version lower than 6.0RC1, make sure the Overwrite the cache-control header for Wordpress\'s pages using web server rules option is disabled. If not, disable it, clear your cache and try again. You can keep this option enabled for Litespeed Server versions equal or higher then 6.0RC1', 'wp-cloudflare-page-cache'); ?>

Overwrite the cache-control header for Wordpress\'s pages using web server rules option, clear the cache and try again.', 'wp-cloudflare-page-cache'); ?>

Force cache bypassing for backend with an additional Cloudflare page rule option or to change the caching mode by activating the Worker mode option.', 'wp-cloudflare-page-cache'); ?>

Fallback cache, make sure you have also enabled the option Automatically purge the fallback cache when Cloudflare cache is purged.', 'wp-cloudflare-page-cache'); ?>

Varnish cache, make sure you have also enabled the option Automatically purge Varnish cache when the Cloudflare cache is purged.', 'wp-cloudflare-page-cache'); ?>

SEO redirect inside the plugin settings page under the Others tab. This will auto redirect any URLs which has swcfpc=1 in it to it\'s normal URL when any non-logged in user clicks on that link, avoiding duplicate content problems.', 'wp-cloudflare-page-cache'); ?>

SEO redirect option inside the plugin settings page under the Others tab. This will auto redirect any URLs which has swcfpc=1 in it to it\'s normal URL when any non-logged in user clicks on that link.', 'wp-cloudflare-page-cache'); ?>

  • Development Mode is NOT enabled for your domain inside Cloudflare.', 'wp-cloudflare-page-cache'); ?>
  • Strip response cookies on pages that should be cached option under the Cache tab to see if this resolves your issue. If it does, that means there are plugin which is injecting cookies into your site header and when Cloudflare sees these Cookies, it think that the page has dynamic content, so it doesn\'t cache everything.', 'wp-cloudflare-page-cache'); ?>

advanced-cache.php method to generate the fallback cache. This system works well in almost all the cases, also this cache generation mechanism is very fast and don\'t eat much server resource. On the other hand the cURL mode is useful in some edge cases where the advanced-cache.php mode of fallback cache is unable to generate proper HTML for the page. This is rare, but the cURL option is given just for these edge cases.', 'wp-cloudflare-page-cache'); ?>

advanced-cache.php to generate the page cache, the cache files comes out very stable and without any issues. But then again if your enable the cURL mode, that means cURL will fetch every page of your website (which are not excluded from fallback cache) to generate the fallback cache and each cURL request is going to increase some server load. So, if you have a small to medium site with not many pages, you can definitely use the cURL mode of fallback cache. But for large high traffic website, unless you have more than enough server resource to handle so many cURL requests, we will recommend stick to using the default advanced-cache.php option which works flawlessly anyway.', 'wp-cloudflare-page-cache'); ?>

Cache Everything works perfectly in almost every cases but in some situations due to some server config or other reasons, the headers that this plugin sets for each requests, does not get respected by the server and gets stripped out. In those edge case scenarios Cloudflare Worker mode can be really helpful over the page rules mode.', 'wp-cloudflare-page-cache'); ?>

100,000 requests/day for FREE. But if your site has more requests than that per day, then you need to opt for the paid plan of $5/month which will give you 10 Million Requests/month and after that $0.50 per additional 1 Million requests.', 'wp-cloudflare-page-cache'); ?>

/assets/js/worker_template.js path.', 'wp-cloudflare-page-cache'); ?>

wp cfcache', 'wp-cloudflare-page-cache'); ?>

Remove Cache Buster Query Parameter option? Is there any implementation guides?', 'wp-cloudflare-page-cache'); ?>

this implementation guide which comes all types of Cloudflare accounts before enabling this option.', 'wp-cloudflare-page-cache'); ?>

swcfpc with another one?', 'wp-cloudflare-page-cache'); ?>

SWCFPC_CACHE_BUSTER to your wp-config.php', 'wp-cloudflare-page-cache'); ?>

  • SWCFPC_CACHE_BUSTER,
  • SWCFPC_CF_API_ZONE_ID,
  • SWCFPC_CF_API_KEY,
  • SWCFPC_CF_API_EMAIL,
  • SWCFPC_CF_API_TOKEN,
  • SWCFPC_PRELOADER_MAX_POST_NUMBER,
  • SWCFPC_CF_WOKER_ENABLED,
  • SWCFPC_CF_WOKER_ID,
  • SWCFPC_CF_WOKER_ROUTE_ID,
  • SWCFPC_CF_WOKER_FULL_PATH,
  • SWCFPC_CURL_TIMEOUT,
  • SWCFPC_PURGE_CACHE_LOCK_SECONDS,
  • SWCFPC_PURGE_CACHE_CRON_INTERVAL,
  • SWCFPC_HOME_PAGE_SHOWS_POSTS,

Actions:

  • swcfpc_purge_all, no arguments.
  • swcfpc_purge_urls, 1 argument: $urls.
  • swcfpc_cf_purge_whole_cache_before,
  • swcfpc_cf_purge_whole_cache_after,
  • swcfpc_cf_purge_cache_by_urls_before, 1 argument: $urls.
  • swcfpc_cf_purge_cache_by_urls_after, 1 argument: $urls.

Filters:

  • swcfpc_bypass_cache_metabox_post_types,
  • swcfpc_fc_modify_current_url,
  • swcfpc_cache_bypass,
  • swcfpc_post_related_url_init,
  • swcfpc_normal_fallback_cache_html,
  • swcfpc_curl_fallback_cache_html,

SWCFPC_CF_WOKER_FULL_PATH PHP constant to provide the full path of your own custom JavaScript file.', 'wp-cloudflare-page-cache'); ?>

/assets/js/worker_template.js path and see the Worker code we are using by default. Then you can copy that worker template file in your computer and extend it to add more features and conditionality that you might need in your project. Once you are done with your Worker code, you can simply point your custom Worker template JavaScript file inside wp-config.php using the SWCFPC_CF_WOKER_FULL_PATH PHP constant and the plugin will use your Worker file to create the worker in your website route instead of using the default Worker code. Here is an example of how to use the PHP constant inside your wp-config.php. Please make sure you provide the absolute path of your custom Worker file.', 'wp-cloudflare-page-cache'); ?>

define('SWCFPC_CF_WOKER_FULL_PATH', '/home/some-site/public/wp-content/themes/your-theme/assets/js/my-custom-cf-worker.js');

Please note only for Super Advanced Knowledgeable Users who know exactly what they are doing and which will lead to what. General users should avoid tinkering with the Worker Code as this might break your website if you don\'t know what you are doing.', 'wp-cloudflare-page-cache'); ?>

do_action("swcfpc_purge_cache");

do_action("swcfpc_purge_cache", array("https://example.com/some-page/", "https://example.com/other-page/"));