WordPress.org

Ready to get started?Download WordPress

Forums

Weather Forecast - WP Wunderground
Cache re-load time (2 posts)

  1. gezginrocker
    Member
    Posted 1 month ago #

    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/

  2. gezginrocker
    Member
    Posted 3 weeks ago #

    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...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.