Skip to content

Commit cc9dbdf

Browse files
authored
Merge pull request #272 from rtCamp/fix/issue-112
Fix: ignore purging on update of every nav_menu_item
2 parents e196f09 + 1767a84 commit cc9dbdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,12 @@ public function set_future_post_option_on_future_status( $new_status, $old_statu
577577

578578
global $blog_id, $nginx_purger;
579579

580+
$exclude_post_types = array( 'nav_menu_item' );
581+
582+
if ( in_array( $post->post_type, $exclude_post_types, true ) ) {
583+
return;
584+
}
585+
580586
if ( ! $this->options['enable_purge'] ) {
581587
return;
582588
}

0 commit comments

Comments
 (0)