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.

eZ debug

Timing: Jan 29 2025 14:42:59
Script start
Timing: Jan 29 2025 14:42:59
Module start 'layout'
Timing: Jan 29 2025 14:42:59
Module start 'content'
Timing: Jan 29 2025 14:43:01
Module end 'content'
Timing: Jan 29 2025 14:43:01
Script end

Main resources:

Total runtime1.3118 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0023 739.343836.6484
Module start 'content' 0.00761.3033 775.9922546.3203
Module end 'content' 1.31090.0008 1,322.312511.8516
Script end 1.3117  1,334.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2425160.0002
Check MTime0.00130.1007160.0001
Mysql Total
Database connection0.00080.058710.0008
Mysqli_queries1.266496.5412620.0204
Looping result0.00060.0435600.0000
Template Total1.266196.520.6331
Template load0.00200.155320.0010
Template processing1.264196.365720.6320
Template load and register function0.00020.015110.0002
states
state_id_array0.00260.197910.0026
state_identifier_array0.00250.193920.0013
Override
Cache load0.00160.1227170.0001
Sytem overhead
Fetch class attribute can translate value0.00100.074730.0003
Fetch class attribute name0.00140.104070.0002
XML
Image XML parsing0.00310.240030.0010
class_abstraction
Instantiating content class attribute0.00000.003180.0000
General
dbfile0.00310.2368310.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs