获得清漆工作在Magento [英] Getting Varnish To Work on Magento

查看:156
本文介绍了获得清漆工作在Magento的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先请原谅我完全不了解Varnish。这是我第一次使用Varnish做任何事情。



我在下面的示例: http://www.kalenyuk.com.ua/magento-performance-optimization-with-varnish-cache-47.html p>

但是当我安装并运行这个,Varnish似乎没有缓存。我得到的X-Varnish头部有一个单一的数字和Via头,值为1.1 varnish



我被告知(由我的ISP),因为Magento设置的以下cookie:



Set-Cookie:frontend = 6t2d2q73rv9s1kddu8ehh8hvl6; expires = Thu,2011年2月17日14:29:19 GMT; path = /; domain = XX.X.XX.XX; httponly



他们说我要改变Magento来处理这个问题,或者配置Varnish来处理这个问题。因为改变Magento是没有问题的,我想知道是否有人可以给我一个线索,如何配置Varnish处理这个cookie?

解决方案

http://moprea.ro/2011/may / 6 / magento-performance-optimization-varnish-cache-3 / 描述了使用varnish的全页缓存的Magento扩展。此扩展依赖于在github上发布的Varnish配置。



这些是已实现的功能:


  1. 可使用的清漆配置

  2. 使用Varnish(超快速缓存HTTP反向代理)启用全页缓存。


  3. 在保存产品,类别和CMS页面时自动清除(仅限)缓存的网页。

  4. 添加

  5. 在保存类别导航并通知Varnish缓存时通知管理员用户

  6. 对于在购物车中有产品或已登录的用户,自动关闭清漆缓存等)

  7. 提供默认清漆配置,以便模块可以使用。
    屏幕截图: https://github.com/madalinoprea/magneto-varnish/wiki


First please forgive me for total lack of understanding of Varnish. This is my first go at doing anything with Varnish.

I am following the example at: http://www.kalenyuk.com.ua/magento-performance-optimization-with-varnish-cache-47.html

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

I have been told (by my ISP) it is because of the following cookie that Magento sets:

Set-Cookie: frontend=6t2d2q73rv9s1kddu8ehh8hvl6; expires=Thu, 17-Feb-2011 14:29:19 GMT; path=/; domain=XX.X.XX.XX; httponly

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/ 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:

  1. Workable varnish config
  2. Enable full page caching using Varnish, a super fast caching HTTP reverse proxy.
  3. Varnish servers are configurable in Admin, under System / Configuration / General - Varnish Options
  4. Automatically clears (only) cached pages when products, categories and CMS pages are saved.
  5. Adds a new cache type in Magento Admin, under System / Cache Management and offers the possibility to deactivate the cache and refresh the cache.
  6. Notifies Admin users when a category navigation is saved and Varnish cache needs to be refreshed so that the menu will be updated for all pages.
  7. Turns off varnish cache automatically for users that have products in the cart or are logged in, etc.)
  8. Default varnish configuration offered so that the module is workable. Screen shots: https://github.com/madalinoprea/magneto-varnish/wiki

这篇关于获得清漆工作在Magento的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆