简体   繁体   English

plone.app.caching和设置Varnish清除缓存

[英]plone.app.caching and settings Varnish to purge the cache

I am running Plone 4.1 on Ubuntu 10.04. 我在Ubuntu 10.04上运行Plone 4.1。 How one should configure 如何配置

  • Varnish (public IP:80) - default.vcl from Ubuntu/Debian Varnish(公共IP:80)-Ubuntu / Debian中的default.vcl

  • plone.app.caching plone.app.caching

... so that purging works correctly ...以便清除工作正常

I am not that interest getting per-page cache clears, but having Purge button working in the site control panel would be nice and giving editors to easy to clear the cache in the case of emergency. 我并不希望清除每页缓存,但是在站点控制面板中使用“清除”按钮会很好,并且在紧急情况下使编辑者可以轻松清除缓存。

(Alternative I can show how to use varnishadm, but I think setting up Varnish and Plone to discuss each other cannot be that difficult) (或者,我可以展示如何使用varnishadm,但我认为设置Varnish和Plone进行讨论不会那么困难)

What have you filled in the caching control panel? 您在缓存控制面板中填写了什么?

One oddity is that you need to always add the port to the domain, so something like http://example.com:80 (the docs are fixed in SVN) if you want to accept multiple domains. 奇怪的是,您需要始终将端口添加到域中,因此如果要接受多个域,则类似http://example.com:80 (文档在SVN中已修复)。

If you run Varnish on port 80, it should be clear that virtual host rewriting doesn't happen in front of Varnish, so you set the corresponding checkbox accordingly. 如果在端口80上运行Varnish,则应该清楚虚拟主机重写不会发生在Varnish的前面,因此应相应地设置相应的复选框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM