Skip to content

Commit

Permalink
Add a hook to bump the cache from cron
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 21, 2018
1 parent 486abe1 commit 586c774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/minit-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down

0 comments on commit 586c774

Please sign in to comment.