Skip to content

Commit c45d8c8

Browse files
committed
Add hook to fire purge_all for any caching type
1 parent b6d5e37 commit c45d8c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,13 @@ 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' );
726+
720727
wp_redirect( esc_url_raw( $redirect_url ) );
721728
exit();
722729

0 commit comments

Comments
 (0)