How do I clear the cache programatically? Posted on January 4, 2021 by Viewing 2 posts - 1 through 2 (of 2 total) Author Posts January 4, 2021 at 6:21 pm #32651 Nikolay DyankovGuest Hi, I’m a plugin developer and I would like to clear the cache each time my plugin updates its shortcodes. Do you have developer documentation, or can you give me the snippet to do that? Cheers! January 4, 2021 at 6:26 pm #32693 Jesse OwensKeymaster Hi Nikolay- It sounds like you’ll want to use the w3tc_flush_posts() or w3tc_flush_post( $post_id ) functions. You can find the documentation on our GitHub Wiki. This reply was modified 3 years, 10 months ago by Jesse Owens. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) The topic ‘How do I clear the cache programatically?’ is closed to new replies. Post navigation Will BoldGrid Work on my wordpress.com Site? →