Forums / Setup & design / basic problem with cache ! / Comment24010
Xavier Serna
Thursday 15 February 2007 12:39:22 am
Hi Eder,
you have to include the output with the current user inside a cache-block unique for each user, at this page you can see an example of how to do it:
http://ez.no/community/articles/ez_publish_performance_optimization_part_3_of_3_practical_cache_and_template_solutions/cache_blocks_optimization
the part that refers to your question:
Here is an example with cache-blocks that are unique for each URL and user:
{cache-block keys=array($uri_string,$current_user.contentobject_id)} ... tpl code {/cache-block}
hope this helps!
-- Xavier Serna eZ Publish Certified Developer Departament de Software Microblau S.L. - http://www.microblau.net +34 937 466 205