Cookie group not working on posts/page
-
Hello,
I have the community version of the plugin setup with page caching (enhanced disc). I also have a cookie that displays a different menu based on it’s value. There are only two states. I have this set up in the cookie groups:menu_b my_cookie=menu_b
this is correctly causing two versions of the homepage to be saved. one at
_index_ssl.html
and another at_index_menu_b_ssl.html
this seems to work perfectly for the homepage and any archive page. two versions are saved each with the correct menu.The issue I’m having is that any single page/post does not work. if I view a page with the cookie set to menu_a it will save the
_index_ssl.html
then I switch to menu_b and try to view the same page and it will create_index_menu_b_ssl.html
but the content of this page will be the same as menu_a. I can also reverse this process, and get the adverse. I’m guessing that on the first visit of the page with the cookie it’s loading the cached page to create the new cached page instead of loading the page from wordpress. Another way – it’s correctly identifying that the page has a cookie and needs to generate a new cached page but it’s caching the wrong content (basically just duplicating the already cached page).I’ve also tried setting up two cookie groups menu_a and menu_b but got the same results.
Any help would be appreciated.
- The topic ‘Cookie group not working on posts/page’ is closed to new replies.