On Wed, 14 Oct 2009, Greg wrote:
> It sounds perfect, but I can't find how to set this key... Is it in my
> cache.yml file?
If you are caching a partial, then you can include the key in the
include_partial() call, e.g.
<?php include_partials('global/feeds', array('sf_cache_key' =>
'newfeeds')); ?>
NOTE: you must cache at the partial/component/slot level to take advantage
of contextual cache - this implies that caching for the whole action
should be OFF in your main cache.yml, otherwise your action cache will
override the partials' caches.
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---