How do I clear the cache programatically? Posted on January 4, 2021 by Viewing 2 posts - 1 through 2 (of 2 total)AuthorPosts January 4, 2021 at 6:21 pm #32651 Nikolay DyankovGuestHi,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 OwensKeymasterHi 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 4 years ago by Jesse Owens. AuthorPosts Viewing 2 posts - 1 through 2 (of 2 total) The topic ‘How do I clear the cache programatically?’ is closed to new replies.Post navigationWill BoldGrid Work on my wordpress.com Site? →