How to call clear cache from function.php
-
Hi, can someone tell me how to call clear cache from function.php.
Now I need to clear cache after editor change something in advanced custom filed option page.
Here is my code to catche update action:
function acf_clear_cache($post_id) {
if ( $post_id == 0 || $post_id == ‘options’ ) {
// call clear cache
}
return $post_id;
}add_action(‘acf/save_post’, ‘acf_clear_cache’, 1);
Thanks for help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to call clear cache from function.php’ is closed to new replies.