Cache-Block Usage

Cache-Block Usage

Wednesday 03 September 2003 7:13:19 am - 4 replies

Modified on Wednesday 03 September 2003 7:19:17 am by Alex Jones

Author Message

Paul Forsyth

Wednesday 03 September 2003 8:41:26 am

Alex,

I get mixed results from using cache blocks. Sometimes they work fantastically well and other times they don't quite...

The cache should expire when the article is updated in the admin, or by the time you specify.

Have you tried an array based cached block, like:

{cache-block keys=array('page_name',
$DesignKeys:used.node)}

Your description shoulds like it should cache each node. Thats fine, there only the initial hit of processing each node. But once done it should be v fast.

As long as your id is unique it should work...

Paul

Alex Jones

Wednesday 03 September 2003 8:58:35 am

Hrrrm, I'll try the array to see if that works. :) I'm still confused as to why setting it with the Node ID didn't work. Hopefully the array will help.

Thanks Paul!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Wednesday 03 September 2003 9:14:03 am

It might be something silly like the $node_id not being defined in your current name space...

paul

Alex Jones

Wednesday 03 September 2003 9:21:40 am

Yeah, that would be silly....and me thinks the exact reason I ran into problems. :)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.