WordPress.org

Support

Support » Plugins and Hacks » Hyper Cache » Hyper Cache does not invalidate the home page

Hyper Cache does not invalidate the home page

  • If I set my blog to use a static home page with the blog itself being in a secondary page, I noticed Hyper Cache only invalidates the blog page, but not the home page, even when I have it set to invalidate the home, archive and category pages whenever I create a new post. The result is that these new posts don’t show on the home page until cache expires. Not a big deal, but I’m wondering if there’s a way to refresh the home page as well whenever a new post is modified or generated. Anyone know?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had the same problem. Luckily, there is a workaround of sorts. Stick this at the top of the home page template:

    global $hyper_cache_stop; $hyper_cache_stop = true;

    Unfortunately this completely turns cache off for the page, not force a refresh. In my case, the home page is updated so often, it’s not worth caching anyway.

    It’s explained a bit more in the docs

    Hyper Cache

    Will this be resolved in new version?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hyper Cache does not invalidate the home page’ is closed to new replies.
Skip to toolbar