Clearing View Cache

Author Message

Jacobi Jacobi

Friday 30 April 2010 8:47:34 am

Can someone explain how Clearing view cache works in eZ Publish?

a) Is it a cronjob which clears view cache when publishing a node (for the node, for the parent node, for related objects, for similar keywords)

b) if it is a cronjob to clear the view cache, the name of the cronjob is?

Gaetano Giunta

Friday 30 April 2010 8:56:33 am

Not a cronjob.

It is done realtime when an object is published.

Viewcache for object, parent, and related objects is cleared.

You can finetune this by parameters in viewcache.ini, bu enabling the smartviewcache.

Look up more in the online docs: http://ez.no/doc/ez_publish/technical_manual/4_x/features/view_caching

Principal Consultant International Business
Member of the Community Project Board

Johann Lemaitre

Wednesday 12 May 2010 7:29:02 am

In the back office, a contributor can click on the picture next to the content title in the content preview box.

After, in the tooltip, he can choice the option "clear the viewcaching of the current node or clear the view caching à the subtree".

To open this functionnality to my contributor without giving the administrator role.

So could you tell me what is the right and single rule to do it ?

I have tested the rule "setup -> managecache -> no limit" but it is not a success.

Thx for your help.

Bertrand Dunogier

Wednesday 12 May 2010 11:28:50 am

Why would you want to do that, Johann ? :)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Johann Lemaitre

Wednesday 19 May 2010 2:48:11 am

I have configured further smartViewCache rules.

But if I have forgotten one, editors can always force the cache cleanup.

So it is possible to do it ?

Johann Lemaitre

Friday 28 May 2010 5:34:51 am

The solution :

you affect the fonction "managecache" of the module "setup" without limitation

Johann Lemaitre

Friday 28 May 2010 5:36:38 am

The solution

you should configure the "managecache" fonction of the "setup" module with NO LIMITATION

Nicolas Pastorino

Friday 28 May 2010 8:11:42 am

Thanks Johann for sharing the solution!

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 18 2025 02:06:25
Script start
Timing: Jan 18 2025 02:06:25
Module start 'layout'
Timing: Jan 18 2025 02:06:25
Module start 'content'
Timing: Jan 18 2025 02:06:26
Module end 'content'
Timing: Jan 18 2025 02:06:26
Script end

Main resources:

Total runtime1.1251 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.7891152.6094
Module start 'layout' 0.00590.0031 740.398439.4297
Module start 'content' 0.00901.1147 779.8281708.5234
Module end 'content' 1.12380.0013 1,488.351616.1875
Script end 1.1250  1,504.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3124160.0002
Check MTime0.00130.1163160.0001
Mysql Total
Database connection0.00070.066110.0007
Mysqli_queries1.060694.2686780.0136
Looping result0.00080.0667760.0000
Template Total1.095897.420.5479
Template load0.00210.190820.0011
Template processing1.093797.211420.5468
Template load and register function0.00030.023310.0003
states
state_id_array0.00120.109310.0012
state_identifier_array0.00070.062820.0004
Override
Cache load0.00190.1647380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.050150.0001
Fetch class attribute name0.00110.0949110.0001
XML
Image XML parsing0.00160.138450.0003
class_abstraction
Instantiating content class attribute0.00000.0017110.0000
General
dbfile0.00190.1672280.0001
String conversion0.00000.000740.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs