thanx for the doc. I didn't know that it's possible using nested cache-blocks.
The cache-block feature is really fine and speeds up the page load a lot.
Another tip for using the cache-block feature:
------------------------------------------------
If you have many registered users at your site, don't use the user-id in the cache-block-keys if it's not needed. (e.g. you have 10.000 users, 50 are logged in and view the homepage - so 50 versions (files) of the homepage cache-blocks are created.)
It's a better idea to use the role-id list as key.
eg.
{cache-block keys=array('my_cache_block',$uri_string,$current_user.role_id_list|implode(',')) expiry=86400}
... content which is cachable ...
{/cache-block}
cache-block - tip
Georg Franz
Thursday 04 December 2003 1:39:37 pm
thanx for the doc. I didn't know that it's possible using nested cache-blocks.
The cache-block feature is really fine and speeds up the page load a lot.
Another tip for using the cache-block feature:
------------------------------------------------
If you have many registered users at your site, don't use the user-id in the cache-block-keys if it's not needed. (e.g. you have 10.000 users, 50 are logged in and view the homepage - so 50 versions (files) of the homepage cache-blocks are created.)
It's a better idea to use the role-id list as key.
eg.
{cache-block keys=array('my_cache_block',$uri_string,$current_user.role_id_list|implode(',')) expiry=86400}
... content which is cachable ...
{/cache-block}
Kind regards,
Emil.