Skip to content

Commit bca38c4

Browse files
authored
Merge pull request #232 from Julien-prrs/master
Add hook to fire purge_all for any caching type
2 parents b6d5e37 + c4ba968 commit bca38c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

admin/class-nginx-helper-admin.php

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

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+
}
730+
720731
wp_redirect( esc_url_raw( $redirect_url ) );
721732
exit();
722733

0 commit comments

Comments
 (0)