Support » Plugin: Weather Underground » Cache re-load time

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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


    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.