Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32651
    Nikolay Dyankov
    Guest

    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!

    #32693
    Jesse Owens
    Keymaster

    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.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How do I clear the cache programatically?’ is closed to new replies.