Thanks for the info, Alexandre. It works fine, but using cache() or cache_save() is not the best solution for this case, since I prefer to cache whole action for atom request, not for partial.
I think conditionalCacheFilter is the better solution, and that's what I did, but if config.yml supports this, it is smarter I believe. I have figured out this already, and what I have done is using filter. However, for further investigation, I extended sfViewCacheManager and overload addCache method, also extending sfConfigCacheHandler, and overload isCacheable and addCache method to get more parameter from cache.yml. The way I did here for investigation is not good for symfony internal code, but good for API, because sf_format is general function for routing and should not be as conditional. Anyway, as a symfony user, filter is the way to go I believe. Thanks! :) On Oct 23, 7:48 am, Alexandre SALOME <[email protected]> wrote: > You can do that using cache() and cache_save() methods in your template : > > <?php if (!cache("my-cache-identifier")): ?> > .... > <?php endif ?> > > Refer to doc. > > Alexandre > > 2009/10/20 shin <[email protected]> > > > > > > > > > Hello, > > > I would like to use cache, but only for feed. > > I have an action called "list". and it has two templates, which are > > html and atom. > > > listSuccess.php > > listSuccess.atom.php > > > I want atom to cache, but not html. > > > Has anybody dones this? > > > -- > > shin > > -- > Alexandre Salomé -- [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
