/** * Get control when configuration is changed by user */ public function w3tc_config_ui_save($config, $old_config) { if ($config->get(array('example', 'is_title_postfix')) != $old_config->get(array('example', 'is_title_postfix')) || $config->get(array('example', 'title_postfix')) != $old_config->get(array('example', 'title_postfix'))) { // flush all content caches, since our extension will now alter // content w3tc_flush_posts(); } }
/** * deprecated * Shortcut for page cache flush * * @return boolean */ function w3tc_pgcache_flush() { return w3tc_flush_posts(); }