diff --git a/inc/3rd-party/hosting/pagely.php b/inc/3rd-party/hosting/pagely.php index 128742373a..da90eb4e8d 100644 --- a/inc/3rd-party/hosting/pagely.php +++ b/inc/3rd-party/hosting/pagely.php @@ -15,4 +15,4 @@ function rocket_clean_pagely() { $purger->purgeAll(); } } -add_action( 'after_rocket_clean_domain', 'rocket_clean_pagely' ); +add_action( 'rocket_after_clean_domain', 'rocket_clean_pagely' ); diff --git a/inc/3rd-party/hosting/siteground.php b/inc/3rd-party/hosting/siteground.php index c04178f052..6650ff8cf9 100644 --- a/inc/3rd-party/hosting/siteground.php +++ b/inc/3rd-party/hosting/siteground.php @@ -83,7 +83,7 @@ function rocket_sg_clear_cache() { if ( rocket_is_supercacher_active() ) { add_action( 'admin_post_sg-cachepress-purge', 'rocket_sg_clear_cache', 0 ); - add_action( 'after_rocket_clean_domain', 'rocket_clean_supercacher' ); + add_action( 'rocket_after_clean_domain', 'rocket_clean_supercacher' ); add_filter( 'rocket_display_varnish_options_tab', '__return_false' ); // Prevent mandatory cookies on hosting with server cache. add_filter( 'rocket_cache_mandatory_cookies', '__return_empty_array', PHP_INT_MAX ); diff --git a/inc/3rd-party/plugins/i18n/polylang.php b/inc/3rd-party/plugins/i18n/polylang.php index 0df3902e1b..a7297c0e0c 100644 --- a/inc/3rd-party/plugins/i18n/polylang.php +++ b/inc/3rd-party/plugins/i18n/polylang.php @@ -15,7 +15,7 @@ function rocket_force_clean_domain_on_polylang() { rocket_clean_cache_dir(); } } - add_action( 'after_rocket_clean_domain', 'rocket_force_clean_domain_on_polylang' ); + add_action( 'rocket_after_clean_domain', 'rocket_force_clean_domain_on_polylang' ); // Filter mandatory cookies and WP Rocket rewrite rules if Polylang module 'Detect browser language' is enabled. if ( function_exists( 'PLL' ) && PLL()->options['browser'] ) { diff --git a/inc/3rd-party/plugins/nginx-helper.php b/inc/3rd-party/plugins/nginx-helper.php index d139cb01a9..cb565ebe86 100644 --- a/inc/3rd-party/plugins/nginx-helper.php +++ b/inc/3rd-party/plugins/nginx-helper.php @@ -145,7 +145,7 @@ function rocket_clean_nginx_helper_cache() { do_action( 'rt_nginx_helper_purge_all' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals } - add_action( 'after_rocket_clean_domain', 'rocket_clean_nginx_helper_cache' ); + add_action( 'rocket_after_clean_domain', 'rocket_clean_nginx_helper_cache' ); /** * Clean the NGINX cache after the Used CSS has been generated. diff --git a/inc/3rd-party/plugins/varnish-http-purge.php b/inc/3rd-party/plugins/varnish-http-purge.php index e94e43ee86..50c750ba86 100644 --- a/inc/3rd-party/plugins/varnish-http-purge.php +++ b/inc/3rd-party/plugins/varnish-http-purge.php @@ -23,7 +23,7 @@ function rocket_clear_cache_after_varnish_http_purge() { } endif; -add_action( 'after_rocket_clean_domain', 'rocket_clean_varnish_http_purge' ); +add_action( 'rocket_after_clean_domain', 'rocket_clean_varnish_http_purge' ); /** * Call the cache server to purge the cache with Varnish HTTP Purge. * diff --git a/inc/3rd-party/themes/studiopress.php b/inc/3rd-party/themes/studiopress.php index 979b2bd041..b015110204 100644 --- a/inc/3rd-party/themes/studiopress.php +++ b/inc/3rd-party/themes/studiopress.php @@ -33,7 +33,7 @@ function rocket_clear_cache_after_studiopress_accelerator() { } } -add_action( 'after_rocket_clean_domain', 'rocket_clean_studiopress_accelerator' ); +add_action( 'rocket_after_clean_domain', 'rocket_clean_studiopress_accelerator' ); /** * Call the cache server to purge the cache with StudioPress Accelerator. * diff --git a/inc/Addon/Cloudflare/Subscriber.php b/inc/Addon/Cloudflare/Subscriber.php index 34702b5da6..7c2f1a88b4 100644 --- a/inc/Addon/Cloudflare/Subscriber.php +++ b/inc/Addon/Cloudflare/Subscriber.php @@ -64,7 +64,7 @@ public static function get_subscribed_events() { 'rocket_varnish_ip' => 'set_varnish_localhost', 'rocket_varnish_purge_request_host' => 'set_varnish_purge_request_host', 'rocket_cron_deactivate_cloudflare_devmode' => 'deactivate_devmode', - 'after_rocket_clean_domain' => 'auto_purge', + 'rocket_after_clean_domain' => 'auto_purge', 'after_rocket_clean_post' => [ 'auto_purge_by_url', 10, 3 ], 'admin_post_rocket_purge_cloudflare' => 'purge_cache', 'init' => [ 'set_real_ip', 1 ], diff --git a/inc/Addon/Sucuri/Subscriber.php b/inc/Addon/Sucuri/Subscriber.php index d4808971de..8e0154d69c 100644 --- a/inc/Addon/Sucuri/Subscriber.php +++ b/inc/Addon/Sucuri/Subscriber.php @@ -40,7 +40,7 @@ public function __construct( Options_Data $options ) { */ public static function get_subscribed_events() { return [ - 'after_rocket_clean_domain' => 'maybe_clean_firewall_cache', + 'rocket_after_clean_domain' => 'maybe_clean_firewall_cache', 'after_rocket_clean_post' => 'maybe_clean_firewall_cache', 'after_rocket_clean_term' => 'maybe_clean_firewall_cache', 'after_rocket_clean_user' => 'maybe_clean_firewall_cache', diff --git a/inc/Engine/Media/Lazyload/CSS/Subscriber.php b/inc/Engine/Media/Lazyload/CSS/Subscriber.php index c84adfff95..6fdebef481 100644 --- a/inc/Engine/Media/Lazyload/CSS/Subscriber.php +++ b/inc/Engine/Media/Lazyload/CSS/Subscriber.php @@ -143,7 +143,7 @@ public static function get_subscribed_events() { [ 'add_lazy_tag', 24 ], ], 'rocket_buffer' => [ 'maybe_replace_css_images', 1002 ], - 'after_rocket_clean_domain' => 'clear_generated_css', + 'rocket_after_clean_domain' => 'clear_generated_css', 'wp_enqueue_scripts' => 'insert_lazyload_script', 'rocket_css_image_lazyload_images_load' => [ 'exclude_rocket_lazyload_excluded_src', 10, 2 ], 'rocket_lazyload_css_ignored_urls' => 'remove_svg_from_lazyload_css', diff --git a/inc/ThirdParty/Hostings/Kinsta.php b/inc/ThirdParty/Hostings/Kinsta.php index 0b56103d8c..d3b30e576d 100644 --- a/inc/ThirdParty/Hostings/Kinsta.php +++ b/inc/ThirdParty/Hostings/Kinsta.php @@ -23,7 +23,7 @@ public static function get_subscribed_events() { ]; if ( isset( $kinsta_cache ) ) { - $events['after_rocket_clean_domain'] = 'clean_kinsta_cache'; + $events['rocket_after_clean_domain'] = 'clean_kinsta_cache'; $events['after_rocket_clean_post'] = 'clean_kinsta_post_cache'; $events['rocket_rucss_after_clearing_usedcss'] = 'clean_kinsta_cache_url'; $events['rocket_rucss_complete_job_status'] = 'clean_kinsta_cache_url'; diff --git a/inc/ThirdParty/Hostings/Pressable.php b/inc/ThirdParty/Hostings/Pressable.php index 2f6f404358..fa204c7a8b 100644 --- a/inc/ThirdParty/Hostings/Pressable.php +++ b/inc/ThirdParty/Hostings/Pressable.php @@ -19,7 +19,7 @@ public static function get_subscribed_events() { 'do_rocket_generate_caching_files' => [ 'return_false', PHP_INT_MAX ], 'rocket_display_varnish_options_tab' => 'return_false', 'rocket_cache_mandatory_cookies' => [ 'return_empty_array', PHP_INT_MAX ], - 'after_rocket_clean_domain' => 'purge_pressable_cache', + 'rocket_after_clean_domain' => 'purge_pressable_cache', 'rocket_url_to_path' => 'fix_wp_includes_path', 'rocket_set_wp_cache_constant' => 'return_false', 'rocket_generate_advanced_cache_file' => 'return_false', diff --git a/inc/ThirdParty/Hostings/Pressidium.php b/inc/ThirdParty/Hostings/Pressidium.php index 19c72c4367..a248b9e0ed 100644 --- a/inc/ThirdParty/Hostings/Pressidium.php +++ b/inc/ThirdParty/Hostings/Pressidium.php @@ -26,7 +26,7 @@ public static function get_subscribed_events() { } if ( class_exists( 'NinukisCaching' ) ) { - $events['after_rocket_clean_domain'] = 'clean_pressidium'; + $events['rocket_after_clean_domain'] = 'clean_pressidium'; $events['after_rocket_clean_file'] = [ 'purge_url', 10, 1 ]; $events['after_rocket_clean_post'] = [ 'clean_post', 10, 2 ]; } diff --git a/inc/ThirdParty/Hostings/Savvii.php b/inc/ThirdParty/Hostings/Savvii.php index cf580adba5..ead1090b18 100644 --- a/inc/ThirdParty/Hostings/Savvii.php +++ b/inc/ThirdParty/Hostings/Savvii.php @@ -30,7 +30,7 @@ public static function get_subscribed_events() { 'rocket_display_input_varnish_auto_purge' => 'return_false', 'rocket_cache_mandatory_cookies' => 'return_empty_array', 'init' => 'clear_cache_after_savvii', - 'after_rocket_clean_domain' => 'clean_savvii', + 'rocket_after_clean_domain' => 'clean_savvii', ]; } diff --git a/inc/ThirdParty/Hostings/SpinUpWP.php b/inc/ThirdParty/Hostings/SpinUpWP.php index 9a392d266c..9655ed262f 100644 --- a/inc/ThirdParty/Hostings/SpinUpWP.php +++ b/inc/ThirdParty/Hostings/SpinUpWP.php @@ -26,7 +26,7 @@ public static function get_subscribed_events() { 'do_rocket_generate_caching_files' => 'return_false', 'rocket_display_varnish_options_tab' => 'return_false', 'rocket_cache_mandatory_cookies' => 'return_empty_array', - 'after_rocket_clean_domain' => 'purge_site', + 'rocket_after_clean_domain' => 'purge_site', 'wp_rocket_loaded' => 'remove_actions', 'after_rocket_clean_file' => 'purge_url', 'rocket_rucss_after_clearing_usedcss' => 'purge_url', diff --git a/inc/ThirdParty/Hostings/WPEngine.php b/inc/ThirdParty/Hostings/WPEngine.php index 8f2e9a72d8..b862f765c2 100644 --- a/inc/ThirdParty/Hostings/WPEngine.php +++ b/inc/ThirdParty/Hostings/WPEngine.php @@ -25,7 +25,7 @@ public static function get_subscribed_events() { 'admin_init' => 'run_rocket_bot_after_wpengine', 'rocket_set_wp_cache_constant' => 'return_false', 'do_rocket_generate_caching_files' => 'return_false', - 'after_rocket_clean_domain' => 'clean_wpengine', + 'rocket_after_clean_domain' => 'clean_wpengine', 'rocket_buffer' => [ 'add_footprint', 50 ], 'rocket_disable_htaccess' => 'return_true', 'rocket_generate_advanced_cache_file' => 'return_false', diff --git a/inc/ThirdParty/Hostings/WordPressCom.php b/inc/ThirdParty/Hostings/WordPressCom.php index 92a7d03ef8..80651a52ee 100644 --- a/inc/ThirdParty/Hostings/WordPressCom.php +++ b/inc/ThirdParty/Hostings/WordPressCom.php @@ -22,7 +22,7 @@ public static function get_subscribed_events() { 'rocket_display_varnish_options_tab' => 'return_false', 'rocket_set_wp_cache_constant' => 'return_false', 'rocket_generate_advanced_cache_file' => 'return_false', - 'after_rocket_clean_domain' => 'purge_wpcom_cache', + 'rocket_after_clean_domain' => 'purge_wpcom_cache', ]; } diff --git a/inc/ThirdParty/Plugins/CDN/Cloudflare.php b/inc/ThirdParty/Plugins/CDN/Cloudflare.php index 87087b3871..c3f7d4ec04 100644 --- a/inc/ThirdParty/Plugins/CDN/Cloudflare.php +++ b/inc/ThirdParty/Plugins/CDN/Cloudflare.php @@ -70,7 +70,7 @@ public static function get_subscribed_events() { 'rocket_display_input_do_cloudflare' => 'hide_addon_radio', 'rocket_cloudflare_field_settings' => 'update_addon_field', 'pre_get_rocket_option_do_cloudflare' => 'disable_cloudflare_option', - 'after_rocket_clean_domain' => 'purge_cloudflare', + 'rocket_after_clean_domain' => 'purge_cloudflare', 'after_rocket_clean_files' => 'purge_cloudflare_partial', 'rocket_rucss_complete_job_status' => 'purge_cloudflare_after_usedcss', 'rocket_rucss_after_clearing_usedcss' => 'purge_cloudflare_after_usedcss', diff --git a/inc/ThirdParty/Plugins/I18n/WPML.php b/inc/ThirdParty/Plugins/I18n/WPML.php index f352388d47..7712235659 100644 --- a/inc/ThirdParty/Plugins/I18n/WPML.php +++ b/inc/ThirdParty/Plugins/I18n/WPML.php @@ -48,7 +48,7 @@ public static function get_subscribed_events() { $events['rocket_preload_all_to_pending_condition'] = 'clean_only_right_domain'; $events['rocket_preload_sitemap_before_queue'] = 'add_languages_sitemaps'; $events['after_rocket_clean_home'] = 'remove_root_cached_files'; - $events['after_rocket_clean_domain'] = 'remove_root_cached_files'; + $events['rocket_after_clean_domain'] = 'remove_root_cached_files'; $events['pre_update_option_icl_sitepress_settings'] = [ 'on_change_directory_for_default_language_clean_cache', 10, 2 ]; return $events;