Forums / Setup & design / Fetch the nodes under a node's grandparent /cache

Fetch the nodes under a node's grandparent /cache

Author Message

Jack Rackham

Sunday 16 May 2004 8:56:00 am

I need to fetch the nodes under a node's grandparent. How do I do this when cache is turned on? See: http://www.ez.no/community/forum/general/fetching_nodes_under_a_nodes_grandparent

I have tried this

{let category_list=fetch(content,'list',hash(parent_node_id,$DesignKeys:used.parent_node,
'class_filter_type', 'include',
'class_filter_array', array( 10 )))}

but it works only when a delete the cache.

Silke Fox

Wednesday 26 May 2004 2:08:24 am

In which view mode are you trying to do so?

Check the setting of ComplexDisplayViewModes in your site.ini.append.
It's default is "sitemap", so the view cache for the sitemap view is cleared more often
because one of the objects might have changed.
So what you're trying to do should work in sitemap.tpl, but not in full.tpl (as long
as you don't add "full" to ComplexDisplayViewModes).

Silke

Jack Rackham

Wednesday 02 June 2004 5:39:42 am

Do you know a similar command that will work under full.tpl

eZ debug

Timing: Jan 18 2025 19:32:51
Script start
Timing: Jan 18 2025 19:32:51
Module start 'content'
Timing: Jan 18 2025 19:32:52
Module end 'content'
Timing: Jan 18 2025 19:32:52
Script end

Main resources:

Total runtime0.7440 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.9922180.8125
Module start 'content' 0.00600.6204 769.8047507.5156
Module end 'content' 0.62640.1175 1,277.3203332.7422
Script end 0.7439  1,610.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5194210.0002
Check MTime0.00140.1840210.0001
Mysql Total
Database connection0.00090.116110.0009
Mysqli_queries0.674790.67691940.0035
Looping result0.00180.24831920.0000
Template Total0.715796.220.3578
Template load0.00200.266820.0010
Template processing0.713795.920820.3568
Template load and register function0.00010.014010.0001
states
state_id_array0.00090.117910.0009
state_identifier_array0.00100.128020.0005
Override
Cache load0.00160.2208210.0001
Sytem overhead
Fetch class attribute can translate value0.00190.254130.0006
Fetch class attribute name0.00170.228140.0004
XML
Image XML parsing0.00090.116530.0003
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00350.4672270.0001
String conversion0.00000.001030.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs