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

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

Main resources:

Total runtime0.0120 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.0046 588.2813151.2266
Module start 'layout' 0.00460.0020 739.507836.6797
Module start 'content' 0.00660.0043 776.187590.1875
Module end 'content' 0.01090.0010 866.375029.9922
Script end 0.0119  896.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001915.6276140.0001
Check MTime0.00097.3557140.0001
Mysql Total
Database connection0.00086.776110.0008
Mysqli_queries0.002117.746930.0007
Looping result0.00000.073710.0000
Template Total0.00086.710.0008
Template load0.00065.230510.0006
Template processing0.00021.438110.0002
Override
Cache load0.00043.300410.0004
General
dbfile0.00119.030880.0001
String conversion0.00000.051840.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