Title: Cache timeout
Last modified: August 22, 2016

---

# Cache timeout

 *  Resolved [Firest](https://wordpress.org/support/users/firest/)
 * (@firest)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-timeout-2/)
 * Hi,
    this is really great plugin, but I would like to know if there is any opinion
   how to delete cache at determinated time. I found only cache expiration AFTER
   time interval, but I need to delete all cache at midnight (becaufe of current
   date in header).
 * Thanks for your response!
 * [https://wordpress.org/plugins/quick-cache/](https://wordpress.org/plugins/quick-cache/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-timeout-2/#post-5730881)
 * Hello,
 * There is not currently any option to set a specific “date” to clear the cache,
   however you can [clear the cache dynamically](https://github.com/websharks/quick-cache/wiki/Clearing-the-Cache-Dynamically).
   This would allow you to create a simple script that you run every night at midnight(
   using a cronjob perhaps–check with your web host):
 *     ```
       <?php
       include_once "wp-load.php"; // change this to the path to your wp-load.php file
       $GLOBALS['quick_cache']->clear_cache(); // Clear the entire cache
       ?>
       ```
   
 * In the meantime, I’ve opened a feature request to make it possible to set a specific
   date/time from within the Quick Cache options: [https://github.com/websharks/quick-cache/issues/408](https://github.com/websharks/quick-cache/issues/408)

Viewing 1 replies (of 1 total)

The topic ‘Cache timeout’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-cache_efefef.svg)
 * [Quick Cache (Speed Without Compromise)](https://wordpress.org/plugins/quick-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/cache-timeout-2/#post-5730881)
 * Status: resolved