Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83354
    Stephanie
    Guest

    I maintain a plugin and am running into a conflict where data is not getting updated correctly when the W3 Total Cache “Database Caching” is enabled. Can you provide me some documentation on how to programmatically work with the Database Caching to prevent issues? I’m running a w3tc_flush_post($post_id); after I add a new post within my custom post type but it still preventing from pulling the new data when I query for it.

    #83425
    Marko Vasiljevic
    Keymaster

    Hello Stephanie,

    Thank you for reaching out and I am happy to assist you with this.
    You can call the W3 Total Cache function w3tc_dbcache_flush(); to purge the DB cache. You can also use wp_cli and call wp w3-total-cache flush database.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to programmatically flush DB Caching’ is closed to new replies.