Forums / General / Clearing View Cache

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

eZ debug

Timing: Jan 29 2025 13:37:04
Script start
Timing: Jan 29 2025 13:37:04
Module start 'content'
Timing: Jan 29 2025 13:37:04
Module end 'content'
Timing: Jan 29 2025 13:37:04
Script end

Main resources:

Total runtime0.1230 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.8203180.8516
Module start 'content' 0.00480.0068 768.6719101.8047
Module end 'content' 0.01160.1113 870.4766529.8594
Script end 0.1230  1,400.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.6664200.0002
Check MTime0.00121.0095200.0001
Mysql Total
Database connection0.00070.533210.0007
Mysqli_queries0.078163.44741410.0006
Looping result0.00090.69381390.0000
Template Total0.111090.210.1110
Template load0.00090.699210.0009
Template processing0.110189.529310.1101
Override
Cache load0.00060.490910.0006
Sytem overhead
Fetch class attribute can translate value0.00060.508910.0006
XML
Image XML parsing0.00020.181410.0002
General
dbfile0.01028.2541200.0005
String conversion0.00000.004130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs