Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

EE Full Page Cache - Eliminating $_COOKIE
 
toddecommi
Jr. Member
 
Total Posts:  3
Joined:  2012-11-10
 

Hi Folks,

We have a customised process that relies on a cookie to render some pivotal display options. This is the only real solution as is required for all website guests.

Process works beautifully with FPC disabled, but with it enabled the PHP global $_COOKIE is cached for the entire browser session.

Essentially - we need to apply a patch to FPC to make it ignore cookies (either all or by name - either is fine for now).

Appreciate if anyone has had any success in acheiving something similar, or a suitable place to start.

Note: running EE1.12 on AWS nginx build.

Cheers,
eC

 
Magento Community Magento Community
Magento Community
Magento Community
 
satish
Enthusiast
 
Total Posts:  812
Joined:  2008-03-24
34,mantri Sadan,Shivaji Nagar,Nagpur,MS,India 4400
 

Any block that should vary due to cookie value or for any other reason should not be cached.

With Magento EE this FPC concept whne used you should create a container for all such blocks with page and set cache to fales.

Then while do FPC for that page specific containers that were created and its cache set to false will not be cached and there values will not be fetched from cache.

 
Magento Community Magento Community
Magento Community
Magento Community
 
toddecommi
Jr. Member
 
Total Posts:  3
Joined:  2012-11-10
 
satish - 23 February 2013 10:28 AM

Any block that should vary due to cookie value or for any other reason should not be cached.


With Magento EE this FPC concept whne used you should create a container for all such blocks with page and set cache to fales.


Then while do FPC for that page specific containers that were created and its cache set to false will not be cached and there values will not be fetched from cache.

Hi Satish,

Yes, that would makes sense, but would not work in our situation as the same Cookie logic has been inserted in to multiple core areas of the site (i.e. product pricing), so would essentially mean excluding most of the site (Catalog List, View, Cart, Checkout, My Orders etc...).

Hence we’re looking to exclude at a Cookie level, rather than at a Block level so we have a generic solution.

Cheers!

 
Magento Community Magento Community
Magento Community
Magento Community
 
satish
Enthusiast
 
Total Posts:  812
Joined:  2008-03-24
34,mantri Sadan,Shivaji Nagar,Nagpur,MS,India 4400
 

http://stackoverflow.com/questions/9120413/how-do-i-include-a-dynamic-block-in-the-product-page-with-full-page-caching-turn/9125519#9125519

this link explains in details on FPC and Dynamic blocks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
toddecommi
Jr. Member
 
Total Posts:  3
Joined:  2012-11-10
 

Hey Satish,

Appreciate the link, but still doesn’t answer the core question which is to bulk disable cookies site wide. This cookie is used all over the site, so doing this through excluded blocks is not the right solution.

We want to get in to the core of the FPC and just force it to stop looking at this global variable.

Cheers,
Todd

 
Magento Community Magento Community
Magento Community
Magento Community
 
programming12
Jr. Member
 
Total Posts:  1
Joined:  2013-02-26
 

I really like to read this post and magento allows constructing beneficial solutions ranging from full fledged ecommerce system or just an informative blog post, great going.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top