From 586c774cab033d3aa8e717ce33158b65f0f19323 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Fri, 21 Dec 2018 15:13:59 +0200 Subject: [PATCH] Add a hook to bump the cache from cron --- src/minit-plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/minit-plugin.php b/src/minit-plugin.php index c6da2ab..9548c5c 100644 --- a/src/minit-plugin.php +++ b/src/minit-plugin.php @@ -56,8 +56,9 @@ protected function __construct() { add_action( 'init', array( $this, 'init' ) ); add_action( 'init', array( $this, 'admin_init' ) ); - // This action can used to delete all Minit cache files from cron. + // This action can used to bump and purge Minit cache from cron. add_action( 'minit-cache-purge-delete', array( $this, 'cache_purge' ) ); + add_action( 'minit-cache-version-bump', array( $this, 'cache_bump' ) ); } /**