Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wiper
<?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;
}
}
@iDGS

This comment has been minimized.

Copy link

commented Sep 3, 2014

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.