• Hello.

    Due to caching i’m looking for a way to solve the update problem. Any way or option using ajax ?

    Thank you !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weather Atlas

    (@weatheratlas)

    Hi MassimoD,

    Sorry for the delay in replying.

    Can you please clarify a bit “Due to caching i’m looking for a way to solve the update problem”?

    As for ajax – there’s no option at the moment to async load data.

    Real-time update – for every opened page (for each user) doesn’t make a sense.
    It would increase the time of every page loading and put an unnecessary load on our servers.

    Therefore, weather data displayed in the widget is cached in your database for 15 min. The first visitor (after 15 min.) who opens any page with the widget, doesn’t get “stale” data, but clears cached data and retrieves real-time weather info that stored in the database again for max. 15 min, and so on…

    Thread Starter massimod

    (@massimod)

    I’m using a widget in my Home page and i’m also using a caching plugin. So the widget data is not updated, unless i manually clear the cache.

    I’m not talking about the Atlas weather plugin caching.

    Thanks !

    Plugin Author Weather Atlas

    (@weatheratlas)

    Hi,

    yes, I see the problem.

    But surely caching the page should expire sometime?
    Perhaps limiting caching pages (to 15 min) would solve the problem?
    I guess that would not create a big load on the server.

    Thread Starter massimod

    (@massimod)

    Well doing that actually is like not using caching at all. Caching should update (and is most of the time) when something is changed (a new post or some edit).

    I have set for now the Home only page to refresh every hour, still i’m looking for a better way to get the weather without doing that.

    Thanks for the answers.

    Plugin Author Weather Atlas

    (@weatheratlas)

    Yap, I understand the issue you’re having… but at the moment limiting a Homepage caching time is the only solution.
    Sorry.

    If we come up with some idea, or ajax version, we’ll let you know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ajax for the Widget’ is closed to new replies.