• Resolved katmacau

    (@katmacau)


    Hi. I am having an issue with segments of content not showing when the page is cached. To explain, if a cookie ‘vip’ is set, then special content is set to display on the page as part of the page template. If the cookie is not set, then it doesnt show.

    However when page caching is enabled, this cookie based content does not show. It just shows the cached content for normal users. If I disable page caching it works as expected.

    I tried using:

    if(isset($_COOKIE["vip"])){
        define('DONOTCACHEPAGE', true);
    }

    In the header but that didnt work. Do you have any guides on how to get dynamic content (that set by cookie or session status) to show on a page but still allow it to be cached? Possibly with ajax script or other methods?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache issues with cookie related content’ is closed to new replies.