Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-24T02:24:24-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=2687 2011-03-24T02:24:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2687&p=8259#p8259 <![CDATA[Re: Cached files serve incorrect session]]>

Back to the drawing board.

Statistics: Posted by Jason — March 24th, 2011, 2:24 am


]]>
2011-03-24T00:00:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2687&p=8257#p8257 <![CDATA[Re: Cached files serve incorrect session]]>
I don't think there's a way to do that. Even if you excluded the session ID, that wouldn't exclude the sessions themselves from being cached, therein the problem.

What you really want to do (I think) is simply make sure that caching doesn't happen on a page where the cart exists. You can do this by adding a DONOTCACHE directive to the cart widget (in addition to excluding the pages you already know to exclude). Of course, if the cart widget is on every page, this means that you won't effectively be able to use the caching plugin at all (why install it if caching is never done).

Another option would be to find out the cookie used for items in cart, and set the directive to DONOTCACHE if the cart is not empty.

Which cart are you using (if I may ask)?

Hope this helps.

Mark

Statistics: Posted by markb1439 — March 24th, 2011, 12:00 am


]]>
2011-03-14T18:01:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2687&p=7813#p7813 <![CDATA[Re: Cached files serve incorrect session]]>
I already turned off caching on the cart/checkout pages as I knew this would be a problem. I did not expect that the AJAX requests which add items to the cart would pick up the cached session (but the session id is held in a cookie, so that makes sense).

I'm wondering if there is a way of not caching the session id? (please forgive me if this is an ignorant question, I know not of Quick Cache's internals).

Statistics: Posted by Jason — March 14th, 2011, 6:01 pm


]]>
2011-03-14T16:10:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2687&p=7809#p7809 <![CDATA[Re: Cached files serve incorrect session]]>
There are various workarounds. One is to set Quick Cache not to serve the cart page, checkout page, etc. An additional method is to put a DONOTCACHE or similar directive in the cart widget, so any page containing it is not cached.

Which cart are you using?

Statistics: Posted by markb1439 — March 14th, 2011, 4:10 pm


]]>
2011-03-14T06:21:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2687&p=7797#p7797 <![CDATA[Cached files serve incorrect session]]>
Any idea what's going on or how I might be able to fix it?

Thanks!

Statistics: Posted by Jason — March 14th, 2011, 6:21 am


]]>