Created
September 22, 2021 06:50
-
-
Save rupokify/c07590d98f90ed952b88b20f0bd2af11 to your computer and use it in GitHub Desktop.
Flush Divi Theme Static Cache
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
<?php | |
function flush_divi() { | |
include_once get_template_directory(). '/core/components/PageResource.php'; | |
ET_Core_PageResource::remove_static_resources( 'all', 'all' ); | |
} | |
add_action('wp_head', 'flush_divi'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment