eZCache::fetchList()

Author Message

Torbjørn L.

Monday 03 January 2011 5:07:45 am

Anybody knows what this does and why it makes my template stop outputting?

It seems like this line:

{eZCache::fetchList()}

stops the template from displaying any more content from my class.

I'm modifying an existing template, and this line was in it (made by some developers) and I'm not sure what it does... and why it's there...

The ez.docs doesn't seem to give me a lot of info...

any thoughts?

Nicolas Pastorino

Monday 03 January 2011 6:20:51 am

"
{eZCache::fetchList()}
"

Hi Torbjørn,

This is not a valid template language statement at all, explaining the error you get. One way of making sure this is triggering an error is to enable the debug output in the page. You can do so by following the instructions given there : http://share.ez.no/forums/developer/feedback-form-template/comment64619

Should you need the result of this call in your template, encapsulate it in a template operator : http://share.ez.no/learn/ez-publish/an-introduction-to-developing-ez-publish-extensions/(page)/10

Let us know how things go,
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

Torbjørn L.

Tuesday 04 January 2011 1:12:14 am

Hi,

I don't need it, or at least I think I don't need it. I'm just wondering why somebody put it there and what it does....

So what you are saying is that this statement should not be in any template, and explains why further class extractions in my template fails? and in short - it does nothing else but disrupt the template?

Cheers.

Nicolas Pastorino

Tuesday 04 January 2011 1:17:53 am

"

and in short - it does nothing else but disrupt the template?

"

Correct :)

You can safely remove this.

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

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 29 2025 23:51:04
Script start
Timing: Jan 29 2025 23:51:04
Module start 'layout'
Timing: Jan 29 2025 23:51:04
Module start 'content'
Timing: Jan 29 2025 23:51:04
Module end 'content'
Timing: Jan 29 2025 23:51:04
Script end

Main resources:

Total runtime0.0127 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.0052 588.0156151.1953
Module start 'layout' 0.00520.0020 739.210936.6406
Module start 'content' 0.00720.0043 775.851694.3750
Module end 'content' 0.01160.0011 870.226633.9766
Script end 0.0127  904.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.8523140.0002
Check MTime0.00107.9674140.0001
Mysql Total
Database connection0.00118.341510.0011
Mysqli_queries0.001914.675130.0006
Looping result0.00000.079010.0000
Template Total0.00096.810.0009
Template load0.00075.290310.0007
Template processing0.00021.490810.0002
Override
Cache load0.00043.359510.0004
General
dbfile0.00129.407480.0001
String conversion0.00000.047040.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