Created
August 18, 2014 02:08
-
-
Save pmeissner/26758b13cb7000e309d0 to your computer and use it in GitHub Desktop.
Wiper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Hooks_wiper | |
*/ | |
class Hooks_wiper extends Hooks | |
{ | |
public function control_panel__publish($submission) | |
{ | |
if ($this->fetchConfig('enable', false, null, true)) { | |
$this->addon->api('html_caching')->invalidateCache(); | |
} | |
return $submission; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
per: Philip Meissner Aug 19, 2014; Author's comment copied from: https://plus.google.com/u/0/103138863218570906174/posts/hMSJx1ZK5jQ
+Ant Hubbard & +Ian Pitts Forgot to mention. If you use wiper, I think you need a _config > add-ons > wiper.yaml file with:
enable: true