varnish and static cache

Author Message

Marko Žmak

Tuesday 12 January 2010 10:41:06 pm

Can Varnish safely be used with eZ static cache? are there any problems or things that I should be careful about?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Jérôme Vieilledent

Wednesday 13 January 2010 5:46:44 am

Hi Marko

I don't use Varnish but I don't see any blocking reason for not using it with static cache...

Marko Žmak

Thursday 14 January 2010 1:55:37 pm

I have studied a little bit the usage of varnish, and it seems like eZ static cache is not needed when using varnish? Because actually varnish plays the role of static cache.

Is that so?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Friday 15 January 2010 1:38:49 am

There are of course many differences in the details, but they basically do the same thing: when a user asks for an eZP page, and that page has already been generated a little while ago, serve him the old page without asking eZ Publish.

I would not recommend using both at the same time in the general case, as the are many, sometimes hidden subtleties in configuring proper static caches / reverse proxy caches: besides the ttl for a page, the way that view parameters are taken into account to store many versions of the same page, differentiating between anon and logged_in users etc...

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.