// Regenerate the config file. rocket_generate_config_file(); // Regenerate .htaccess file. flush_rocket_htaccess(); // Purge homepage cache. rocket_clean_home(); } else { // Remove Polylang's language cookie as a mandatory cookie. remove_filter( 'rocket_cache_mandatory_cookies', 'rocket_add_polylang_mandatory_cookie' ); // Add back WP Rocket rewrite rules from .htaccess file. remove_filter( 'rocket_htaccess_mod_rewrite', '__return_false', 74 ); // Regenerate the config file. rocket_generate_config_file(); // Regenerate .htaccess file. flush_rocket_htaccess(); } return $value; } add_filter( 'pre_update_option_polylang', 'rocket_detect_browser_language_status_change' ); CFD Engine 83 | Chicago Area Fire Departments
Select Page