首先请原谅我对Varnish完全缺乏了解.这是我第一次使用 Varnish 做任何事情.
First please forgive me for total lack of understanding of Varnish. This is my first go at doing anything with Varnish.
我正在关注以下示例:http://www.kalenyuk.com.ua/magento-performance-optimization-with-varnish-cache-47.html
但是,当我安装并运行它时,Varnish 似乎没有缓存.我确实得到了带有单个数字的 X-Varnish 标头和一个值为 1.1 清漆的 Via 标头
However when I install and run this, Varnish does not seem to cache. I do get the X-Varnish header with a single number and a Via header that has a value of 1.1 varnish
我被告知(我的 ISP)这是因为 Magento 设置了以下 cookie:
I have been told (by my ISP) it is because of the following cookie that Magento sets:
Set-Cookie: frontend=6t2d2q73rv9s1kddu8ehh8hvl6;到期=周四,2011 年 2 月 17 日 14:29:19 GMT;路径=/;域=XX.X.XX.XX;httponly
他们说我要么必须改变 Magento 来处理这个问题,要么配置 Varnish 来处理这个问题.由于更改 Magento 是不可能的,我想知道是否有人可以给我一个关于如何配置 Varnish 来处理这个 cookie 的线索?
They said that I either have to change Magento to handle this or configure Varnish to handle this. Since changing Magento is out of the question, I was wondering if someone can give me a clue as to how I would configure Varnish to handle this cookie?
http://moprea.ro/2011/may/6/magento-performance-optimization-varnish-cache-3/ 描述了使用 varnish 启用整页缓存的 Magento 扩展.此扩展依赖于 github 上发布的 Varnish 配置.
http://moprea.ro/2011/may/6/magento-performance-optimization-varnish-cache-3/ describes the Magento extension that enables full page cache with varnish. This extension relies on Varnish config published on github.
这些是已经实现的功能:
These are the features already implemented:
这篇关于让清漆在 Magento 上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!