Forums / Developer / eZCache::fetchList()

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

eZ debug

Timing: Jan 17 2025 23:50:14
Script start
Timing: Jan 17 2025 23:50:14
Module start 'content'
Timing: Jan 17 2025 23:50:16
Module end 'content'
Timing: Jan 17 2025 23:50:16
Script end

Main resources:

Total runtime1.5766 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.6094180.8516
Module start 'content' 0.00731.4480 768.4609557.2422
Module end 'content' 1.45540.1211 1,325.7031336.7578
Script end 1.5765  1,662.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2599210.0002
Check MTime0.00150.0981210.0001
Mysql Total
Database connection0.00090.056910.0009
Mysqli_queries1.491094.57571970.0076
Looping result0.00200.12731950.0000
Template Total1.541597.820.7708
Template load0.00970.612820.0048
Template processing1.531997.164920.7659
Template load and register function0.00020.012610.0002
states
state_id_array0.00130.080010.0013
state_identifier_array0.00160.104320.0008
Override
Cache load0.00590.3731310.0002
Sytem overhead
Fetch class attribute can translate value0.00100.062830.0003
Fetch class attribute name0.00100.063450.0002
XML
Image XML parsing0.00100.060630.0003
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00190.1228270.0001
String conversion0.00000.000430.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/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: 20
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs