public function init()
{
if ($this->can_purge_cache() && isset($_GET['cm_purge_all']) && check_admin_referer('manual_purge')) {
$this->purge_site_cache();
add_action('admin_notices', array($this, 'manual_purge_message'));
}
add_action('clean_post_cache', array($this, 'queue_post_purge'));
add_action('clean_term_cache', array($this, 'queue_terms_purges'), 10, 2);
add_action('switch_theme', array($this, 'purge_site_cache'));
add_action('post_updated', array($this, 'queue_old_permalink_purge'), 10, 3);
add_action('activity_box_end', array($this, 'get_manual_purge_link'), 100);
add_action('shutdown', array($this, 'execute_purges'));
}