Created
April 30, 2025 06:55
-
-
Save mahfuzul/48ab5b35ede6a58a565e2f5f93d001d0 to your computer and use it in GitHub Desktop.
Regenerates WP Rocket config file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Updates .htaccess, regenerates WP Rocket config file. | |
*/ | |
function flush_wp_rocket() { | |
if ( ! function_exists( 'rocket_generate_config_file' ) ) { | |
return false; | |
} | |
// Regenerate WP Rocket config file. | |
rocket_generate_config_file(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment