Skip to content
Permalink
Browse files

Merge pull request #232 from Julien-prrs/master

Add hook to fire purge_all for any caching type
  • Loading branch information
chandrapatel committed Feb 21, 2020
2 parents b6d5e37 + c4ba968 commit bca38c4bd536d425f085d9bc05956ea9053f38ce
Showing with 11 additions and 0 deletions.
  1. +11 −0 admin/class-nginx-helper-admin.php
@@ -717,6 +717,17 @@ public function purge_all() {
break;
}

if ( 'purge' === $action ) {

/**
* Fire an action after the entire cache has been purged whatever caching type is used.
*
* @since 2.2.2
*/
do_action( 'rt_nginx_helper_after_purge_all' );

}

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

0 comments on commit bca38c4

Please sign in to comment.
You can’t perform that action at this time.