WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Weather forecast showing yesterday's weather (9 posts)

  1. Marteens
    Member
    Posted 1 year ago #

    Hi!

    I installed W3 Total Cache just a couple of days ago, so I am still new to this. I have a problem: on the footer-widget on my site, I have a weather forecast. And it normally (before installing w3 total cache) changed to the next day just some minutes after midnight. (like 00:02)

    Now, since it's being cached, it's showing yesterday's forecast untill evening next day. So.. Is there a way to cache it, but then delete the cache let's say at 00:05 every day? So during the day it's being cached, but the next day it shows the forecast for that day..

    If not, how do I disable caching for the weather forecast without disabling it from the whole site?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Marteens
    Member
    Posted 1 year ago #

    Anyone? It's still showing the weather from saturday, so I guess I'll have to deaktivate W3TC for now. Please tell me if there is a way that I can keep both W3TC and the weather forecast widget. W3TC did really help for the speed of the site, so I'd love to be able to use it.

    Thank you!

  3. thomasoriis
    Member
    Posted 1 year ago #

    You can solve it by clearing all caches. However it is only a temporary fix. I think there is an issue with expired cache isn't purged.

    Just go to performance and clear all cache - and go to the website and press F5 - that should work.

    I would see if a bug like that is reported - so the developers kan look into the matter.

    Good luck ; )

  4. Marteens
    Member
    Posted 1 year ago #

    Hi thomasoriis.

    Thank you for your answer. This will only be a temporary solution as you say. I'll have to clear all caches every day to keep the weather updated.. If this is the only way, I guess I prefer not having W3TC activated. Thanks anyway :)

  5. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    Not having W3TC activated will slow down your site obviously, try switching to a JavaScript-based weather plugin instead.

  6. Marteens
    Member
    Posted 1 year ago #

    Thank you for your answer. I will consider this option if my site becomes too slow. I am though very fond of my current weather forecast plugin, so I was hoping there was a way I could use both W3TC and that plugin.

  7. Gilligan
    Member
    Posted 1 year ago #

    Try WP Widget Cache plugin.

    You can choose, per widget, whether and how long to cache. Any widgets that display frequently live content should be set to no value in the cache.

    I have used this successfully on several sites.

  8. Marteens
    Member
    Posted 1 year ago #

    Hi Gilligan! Thank you for your suggestion, I am now trying the WP Widget Cache plugin, and it seems very good. Of course this plugin is "only" caching my widgets, so now I'm not caching the main content of my pages. Surely this is way better than not caching anything at all (like I currently was doing), but if possible I would like to also cache my pages.

    Is there some way I can use W3TC (or another cache plugin for that sake) without caching my widgets? In that case this would be a perfect combination with the WP Widget Cache plugin.

  9. Marteens
    Member
    Posted 1 year ago #

    With the plugin called Widgets on Pages, I can put the heavy stuff from my pages (photos etc.) in widgets, and then cache it with the WP Widget Cache plugin that Gilligan recommended.

    For now this seems to be the best solution for me. Thanks again for the tip, Gilligan.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic