• Resolved naturfreundeschweiz

    (@naturfreundeschweiz)


    We have a custom block that sometimes has problems with the cache option from wpo. It should show three posts depending on the settings but sometime only one shows up. After clearing the cache it works again.

    Is there a way to exclude a block type from caching? Or do you have an idea what the problem could be? The site in question is https://naturfreunde.ch (german). The posts not showing up are below “Aktuelles” and “Artikel aus der Zeitschrift Naturfreund”.

Viewing 1 replies (of 1 total)
  • Plugin Support vupdraft

    (@vupdraft)

    You can’t exclude a block but in cache>>advanced settings>>Conditional tags to exclude from caching you can set conditions for excluding a page from caching.

    depending on how your site is set up you can try adding is_home() or is_front_page(_)

    is_home() When the main blog page is being displayed. This is the page which shows the time based blog content of your site, so if you’ve set a static Page for the Front Page (see below), then this will only be true on the Page which you set as the “Posts page” in Administration > Settings > Reading.

    is_front_page() When the front of the site is displayed, whether it is posts or a Page. Returns true when the main blog page is being displayed and the ‘Settings > Reading ->Front page displays’ is set to “Your latest posts”, or when ‘Settings > Reading ->Front page displays’ is set to “A static page” and the “Front Page” value is the current Page being displayed.

Viewing 1 replies (of 1 total)

The topic ‘Exclude block from cache’ is closed to new replies.