• Hello Stefano,

    we found another bug. This applies to sites which have Settings –> Reading –> Front page displays set to “A static page”.

    Cache for such page is not cleared when you publish a new blog post. Imagine you have homepage with a featured posts slider and some intro text and then a real blog page on /blog address with a classic list of recent posts.

    Under these conditions, your cache.php sets the front page type “page” instead of “home”. The condition

    if (is_home() || is_front_page()) $data['type'] = 'home';

    Needs to be changed to:

    if (is_home() || is_front_page()) $data['type'] = 'home';

    Then the special front page cache is cleared properly when a new blog post is created.

    This is crucial if the cache time is set to full day (your current default I believe) and it’s set to only clear the post, homepage and archive cache when a post is published/updated.

    Could you please roll out a quick update version, so we don’t have to fix this by hand on a lot of our sites?

    Thanks,
    Martin

    https://www.ads-software.com/extend/plugins/hyper-cache/

Viewing 7 replies - 16 through 22 (of 22 total)
  • Hello Martin, thank you very much for your link. I read it and I found it to be very informative. It also helped me with my blogs. I find Hyper Cache to be a very powerful and simple cache plugin.

    I have also posted on Stefano’s website in regards to this support thread. I am sure he will look into this and hopefully add an update soon.

    Kind regards

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, sorry if I never replied on this topic. It’s right, the is_front_page() must be added. But actually I need to check if the page used as static home page returns a “/” permalink or not, otherwise the invalidation should be wrong. A small issue anyway.

    I promise I’ll try to patch the code, it’s a busy period… sorry!

    Stefano.

    Hello Stefano,

    I don’t think you totally have to do a thorough check like that. It’s more important to make sure the home page is labeled as “home” in $data[‘type’]. And if there is one more page labeled like that, it should not be a problem, only its cache will be cleared more often (when new posts are published).

    So you are right, that would be a small issue compared to what gets fixed.

    Thanks,
    Martin

    Hello all, the new update has fixed my issue ??

    Hello Martin has the new update worked for you?

    Hello mbrsolution,

    sorry about the delay – we tested this and it works, thank you!

    Martin

    Hello Martin,

    Thank you for getting back and it is ok when you are busy you are busy ??

    I just wanted to ask you if you have come across any other improvement to this great plugin?

    Kind regards

    Hello mbrsolution,

    we will post a new thread if we find any issue.

    Thanks!
    Martin

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Cache invalidation issue – static front page’ is closed to new replies.