• Resolved raduflo

    (@raduflo)


    Hello!

    I want to do a project, a weather site with over 200+ cities.

    I really like your plugin and I saw that by default are only 8 widgets available.

    I got on the plugin file editor and I edited wp-forecast.php

    and edited:

    //
    // maximal number of widgets to use.
    //
    $wpf_maxwidgets = 200;

    to 200.

    After letter Z, the widgets ids showed numbers:

    And the website is slow. Over 30+ seconds to load everything, even outside the plugin. Please help me to do this. I really want to make this project ??

    I don’t know why it doesn’t play well increasing the value.

    Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Sorry, seems I missed your request, just saw it.

    Well, it slows down because if the weather data has to been updated it will <number of locations> requests to fetch the current weather data. The only solution is to setup long cache times to avoid reloading the weather from the weather data provider every time the page is loaded.

    E.g. if you have 200 locations there will be 200 request in the background to fetch all the data and this takes some time.

    Thread Starter raduflo

    (@raduflo)

    Thank you.

    How could I setup long cache times?

    Plugin Author tuxlog

    (@tuxlog)

    You can set the cache time in the field “Refresh cache after” in seconds (e.g. 7200 = 2 hours) . This is a per widget/location setting. Every widget can have a different cache time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.