• Resolved tonyrboies

    (@tonyrboies)


    The top of the main content is a dynamic post grid, so would like to exclude just that block from the caching. Is that possible or do I have to exclude the entire page?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @tonyrboies,

    I am afraid that it is not possible to exclude just a single block of the page from the cache.
    You would have to exclude the entire page using the Excluding URLs functionality in the Supercacher Settings Tab.

    Kind regards,
    Stoyan

    Thread Starter tonyrboies

    (@tonyrboies)

    Thank you Stoyan, I hope you’ll consider add that functionality to the caching code. Many sites have the dynamic rotating post content on the homepage and it would be great to exclude it from caching.

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    I don’t want to give you high hopes on this – it is not coming to the SGO anytime soon. This is a completely different approach to caching and requries a lot of customization per each individual website.

    Generally, it is much better to have the entire page cached and then updating the content on the parts that must be fully dynamic using AJAX for example. That works great and doesn’t require speciffic server configuration that might be hard to be implemented on a scale.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude code block from caching?’ is closed to new replies.