Author Topic

Kristian Hole

Wednesday 06 September 2006 4:07:24 pm

Comment46100

@Thomas:

If you see in the source as Kristof specified, you see that getting the filename for the cacheblock is a bit tricky, since it depends on the position in the template file amongst other things.

If you are publishing elements in a specific part of the tree and want the cache-block, i suggest you use the "subtree=" parameter for the cacheblock.

Normally all cacheblocks are cleared when you publish an object, this can be limited with the mentioned subtree parameter, and also with the "ignore_content_expiry" parameter.

Buy correct use of these two settings i think you should be able to do what you want...

Take a look at the documentation here:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/cache_block

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute