Title: Cache re-load time
Last modified: August 21, 2016

---

# Cache re-load time

 *  Resolved [gezginrocker](https://wordpress.org/support/users/gezginrocker/)
 * (@gezginrocker)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cache-re-load-time/)
 * Hi,
 * I’ve read that if we enable cache, results are re-loaded every 6 hours.
 * Is it possible to increase re-load time? For example, is it possible to re-load
   every 24 hours?
 * Thanks
 * [https://wordpress.org/plugins/wunderground/](https://wordpress.org/plugins/wunderground/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gezginrocker](https://wordpress.org/support/users/gezginrocker/)
 * (@gezginrocker)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cache-re-load-time/#post-5025794)
 * I think I found the answer, so I’m sharing it.
 * At the line 494 of wunderground.php, there is this code:
 * `set_transient($transient_title, $table, apply_filters('wp_wunderground_forecast_cache',
   60*60*6));`
 * I changed 60*60*6 to 60*60*24, so now I think it is updating the cache once in
   24 hours.
 * Hope it helps…
 *  Plugin Author [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-re-load-time/#post-5025866)
 * The new version (2.0) only caches the data for 1 hour by default. If you want
   to change that, add the following code to your theme’s functions.php file:
 *     ```
       add_filter('wunderground_cache_time', 'modify_wunderground_cache_time');
   
       function modify_wunderground_cache_time( $previous ) {
           // Change 24 to however many hours to cache for
           return HOUR_IN_SECONDS * 24;
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cache re-load time’ is closed to new replies.

 * ![](https://ps.w.org/wunderground/assets/icon-256x256.jpg?rev=1000977)
 * [Weather Underground](https://wordpress.org/plugins/wunderground/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wunderground/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wunderground/)
 * [Active Topics](https://wordpress.org/support/plugin/wunderground/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wunderground/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wunderground/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/cache-re-load-time/#post-5025866)
 * Status: resolved