SmartCacheClear

Author Message

Christian Johansen

Wednesday 31 May 2006 4:32:26 am

I looked through viewcache.ini and I have to admit I am a little bit confused by it. What I want to do is to set up a strategy such that when an object i published in some given folders I want my frontpage to be updated and other stuff like that. Does anyone have any more information about SmartCacheClear than what is offered through the documentation in the file?

Ɓukasz Serwatka

Thursday 01 June 2006 1:39:31 pm

Hi Christian,

What content classes do you use? In case where under folder somewhere in the content structure you publish article, you can use.

in settings/override/viewcache.ini.append.php put:

[ViewCacheSettings]
SmartCacheClear=enabled

[article]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ClearCacheMethod=clear_object_and_parent_nodes_caches

Try with ClearCacheMethod to choose right option for your setup.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christian Johansen

Thursday 01 June 2006 10:38:27 pm

Thanks again for your input Lukasz! To check if I got it right - Your example will clear the cache of the object that is edited/created, its parent, and that parents parent and so on? Will it 'bubble' all the way to the top node? Will it only clear cache if an article is created inside a folder?

What about the frontpage and other portal-pages that are not directly connected - ie, they don't have the parent/child relationship, they are not related objects and they don't share keywords, yet the frontpage lists objects from different sections - how can I clear the cache of that? I don't see which ClearCacheMethod will help me do that?

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 31 2025 08:09:20
Script start
Timing: Jan 31 2025 08:09:20
Module start 'layout'
Timing: Jan 31 2025 08:09:20
Module start 'content'
Timing: Jan 31 2025 08:09:20
Module end 'content'
Timing: Jan 31 2025 08:09:20
Script end

Main resources:

Total runtime0.0198 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0078151.1953
Module start 'layout' 0.00720.0034 739.203136.6328
Module start 'content' 0.01050.0076 775.835990.1406
Module end 'content' 0.01810.0017 865.976633.9922
Script end 0.0198  899.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.4019140.0002
Check MTime0.00115.5745140.0001
Mysql Total
Database connection0.00125.992110.0012
Mysqli_queries0.004120.614330.0014
Looping result0.00000.086610.0000
Template Total0.00126.210.0012
Template load0.00094.780210.0009
Template processing0.00031.368310.0003
Override
Cache load0.00073.285510.0007
General
dbfile0.003015.197480.0004
String conversion0.00000.040940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs