W3 Total Cache
W3TC, how to remove a specific cache of a cache when I update data in database? (2 posts)

  1. hileon
    Posted 3 years ago #

    I used a script in crontab to update data in wordpress database.
    At the same time I use W3TC db cache to improve the database access proformance.
    I don't know if there is any method that I can use after I update data in database to set expire immediately to let W3TC to invalid the cache and use the new data?


  2. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    There is a function that can be called to flush the DbCache w3tc_dbcache_flush().

    However if you use disc based caching it can take a lot of time to clear it due to DbCache generating a lot of files and folders. Its best used with opcode or memcache.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic