• Resolved computersluggish

    (@computersluggish)


    Hi

    We are testing out your plugin and so far impressed. However, we noticed an issue with it caching the “Latest posts” WordPress block.

    For example, it’s caching the sidebar which is showing the latest posts using this block. And also if you go onto a post for example https://computersluggish.com/windows-tutorials/gaming/how-to-show-fps-counter-in-pc-games/, then we have the latest posts at the bottom. Both of these are not being updated with the most recent posts that have been published.

    Can you exclude the latest posts block from being cached to avoid this problem? Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @computersluggish,
    I think you misunderstood how page caching plugin works. Page Caching means it is caching the entire page. There is no way to cache/bypass specific section of the page. So, for example if you want to update the latest guides section at the end of the post, you have to purge the whole page from cache. There is no way to tell the system that cache the entire page but don’t cache this specific widget or block. It either cached the entire page or it does not.

    If you wish to show dynamic data in cached pages then those contents needs to be loaded asynchronously over JavaScript. So, first the page loads with all the cached content and then the JavaScript makes async calls to fetch the latest articles and then it shows the latest articles. In this way, you will always see the latest articles as those data is not mart of the HTML content and instead fetched asynchronously using JavaScript.

    Thread Starter computersluggish

    (@computersluggish)

    Hi Saumya, thanks for the response. I did think that may be the case but it’s always worth checking. No worries, we will look into our options. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Latest Posts Caching?’ is closed to new replies.