Last active
September 27, 2023 15:40
-
-
Save mustafauysal/43334048727833e0396b9f0c56feded3 to your computer and use it in GitHub Desktop.
Purge all page cache when a post update happen.
This file contains 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 | |
add_action( 'powered_cache_advanced_cache_purge_post', function ( $post_id ) { | |
\PoweredCache\Utils\clean_page_cache_dir(); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment