Closed cows-magento closed 5 years ago
hey @cows-magento Depending on your current ESI policy some pages may be delivered directly from varnish never bothering neither underlying webserver nor magento. Some ESI blocks might execute some logic. So an answer highly depends on what you are trying to achieve.
PS. your "Screenshots" do not work.
hey @mabigo thank you for your fast reply. I have updated the Screenshot-URLs. As you can see on the screenshots, I have dumped the magento session (Mage/Core/Model/Session) on the live server and the dev server. On the dev server there is much more data stored in the session.
For example there are the 2 default magento session vars last_url and last_category_id. They are also used for example for the breadcrumbs.
First issue is that we got wrong breadcrumbs on the product page cause by the missing data in the session. The breadcrumb always show the lowest category-id of the product, not the last visited url. As found in my debug process it depends on the missing session data caused by the turpentine varnish.
Also we have few other issues in the shop because we cant use or set any session vars. This doenst work on the varnish server:
Mage::getSingleton('core/session')->setMySessionVariable('MyValue');
$myValue = Mage::getSingleton('core/session')->getMySessionVariable();
echo $myValue;
This looks like a duplicate https://github.com/nexcess/magento-turpentine/issues/1389
Hi guys
I have noticed that we can not set any session variables in our store. Using the newest version of turpentine. If i dump the magento session data on a dev server without varnish I see that data: Screenshot 1 Screenshot 2 On Screenshot 2 you see my custom set last_category_id session var.
and if i dump the session on my live server using varnish I get only a few of session data Screenshot 3
It seems that the varnish server is not forwarding the session data. Do you guys have any idea?
Here is my varnish config: