How changing will be done ,situation where smart view caching can't be used ,

Author Message

Romeo Antony

Sunday 26 December 2010 11:22:42 am

Hi ,

Sorry to post the same thread.

http://share.ez.no/forums/developer/clear-the-view-cache-for-all-the-siblings-of-this-node-object/(language)/eng-GB

--folder(root)

------------------- --folder1

------------------- --folder2

---------------------------------- --folder3

--------------------------------------------------custom_article1

---------------------------------- --folder4

--------------------------------------------------- --article2

I need to clear the cache of any article that resides in folder3 whenever an article is published from folder4 . If here are 100's of objects , it cann0t be mangaged by smart view caching as I understand its working .

(from that thred I understood I couldn't do smart view cache clearing )

So cache block is the best way situation like above ? . Anyone please give some idea

Cache block is the best solution to clear the cache ,

Carlos Revillo

Monday 27 December 2010 4:41:53 am

Could be good to know what is your real goal here.

I mean, articles need to change completely or just some parts (maybe blocks or something) of them?

I see your situation as articles having things in common, like 'latest content added' or things like that... is that the case?

Then you can think in refactoring your pagelayout.tpl and move there the parts that need to change, usign cache-block for that. If you already have your pagelayout build and doesn't want to change it, you can also think in doing a override for pagelayout and only those articles...

But note i'm saying this without knowing your real goal, so probably this couldn't be the best option.

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 05:01:30
Script start
Timing: Jan 18 2025 05:01:30
Module start 'layout'
Timing: Jan 18 2025 05:01:30
Module start 'content'
Timing: Jan 18 2025 05:01:32
Module end 'content'
Timing: Jan 18 2025 05:01:32
Script end

Main resources:

Total runtime1.6454 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.4063152.6875
Module start 'layout' 0.00630.0047 741.093839.5313
Module start 'content' 0.01111.6329 780.6250502.1016
Module end 'content' 1.64400.0013 1,282.72668.0625
Script end 1.6453  1,290.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.1961160.0002
Check MTime0.00130.0777160.0001
Mysql Total
Database connection0.00070.040210.0007
Mysqli_queries1.596797.0427540.0296
Looping result0.00050.0308520.0000
Template Total1.586696.420.7933
Template load0.00220.131320.0011
Template processing1.584596.299920.7922
Template load and register function0.00010.007210.0001
states
state_id_array0.00250.152610.0025
state_identifier_array0.00170.102220.0008
Override
Cache load0.00170.1045310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.039420.0003
Fetch class attribute name0.00180.111730.0006
XML
Image XML parsing0.00040.026620.0002
class_abstraction
Instantiating content class attribute0.00000.000330.0000
General
dbfile0.00100.0596160.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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
7content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs