diff --git a/inc/common/purge.php b/inc/common/purge.php index fcbccb2224..62fa23ec74 100755 --- a/inc/common/purge.php +++ b/inc/common/purge.php @@ -249,7 +249,9 @@ function rocket_clean_post( $post_id, $post = null ) { rocket_clean_files( $purge_urls ); // Never forget to purge homepage and their pagination. - rocket_clean_home( $lang ); + if(apply_filters( 'rocket_clean_home_after_clean_post', true, $post_id ) === true ) { + rocket_clean_home( $lang ); + } // Purge home feeds (blog & comments). if ( has_filter( 'rocket_cache_reject_uri', 'wp_rocket_cache_feed' ) !== false ) {