How to purge specific pages upon Post Publish / Update
-
Hello,
We’re using a custom loop to display the 10 most recent posts on a page called News & Events and the 3 most recent posts on our home page (home.php).
How can we implement the following code to purge the cache of our Home and News & Events pages each time a Post is published or updated?
if (function_exists('w3tc_pgcache_flush_post')) { w3tc_pgcache_flush_post($post_id); }
Thanks,
Aaron
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to purge specific pages upon Post Publish / Update’ is closed to new replies.