• Resolved roicecz

    (@roicecz)


    Hello,
    it is possible to remove part of the page or code from caching. I’m mainly interested in dynamically generated elements that change with each load, and this doesn’t work with caching enabled because the elements remain the same. These are mainly advertising banners, randomly displayed articles, partner sections, etc. Thanks in advance for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wpmansour

    (@wpmansour)

    WP-Optimize doesn’t have a built-in way to exclude specific parts of a page from caching by default. It mainly focuses on caching entire pages, and while you can exclude certain URLs or create separate cache files based on cookies, there’s no direct feature to leave out specific sections or elements within a page from being cached. If you need to keep dynamic elements like ads or randomly displayed content fresh, you might need to consider using JavaScript or AJAX to load those parts separately.

    • This reply was modified 2 months, 3 weeks ago by wpmansour.
    Thread Starter roicecz

    (@roicecz)

    Hello, wpmansour,
    Thanks, I thought so and I’ve already started to solve it using AJAX and so far it seems to work fine. It’s admittedly more demanding in terms of programming and subsequent optimizations, but it seems to work pretty well in the end.

    Plugin Support wpmansour

    (@wpmansour)

    Glad to hear that you’ve found a solution using AJAX! It can indeed require a bit more effort, but if it’s working well for your needs, that’s great to hear.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.