Skip to content

Commit c4ba968

Browse files
authored
Updated to match with feedback
1 parent c45d8c8 commit c4ba968

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -717,12 +717,16 @@ public function purge_all() {
717717
break;
718718
}
719719

720-
/**
721-
* Fire an action after the cache has been purged whatever caching type is used'
722-
*
723-
* @since 2.2.2
724-
*/
725-
if ( 'purge' === $action ) do_action( 'rt_nginx_helper_after_purge_all' );
720+
if ( 'purge' === $action ) {
721+
722+
/**
723+
* Fire an action after the entire cache has been purged whatever caching type is used.
724+
*
725+
* @since 2.2.2
726+
*/
727+
do_action( 'rt_nginx_helper_after_purge_all' );
728+
729+
}
726730

727731
wp_redirect( esc_url_raw( $redirect_url ) );
728732
exit();

0 commit comments

Comments
 (0)