Symfony caching question (caching a partial)
- by morpheous
I am using Symfony 1.3.2 and I have a page that uses a partial from another module.
I have two modules: 'foo' and 'foobar'. In module 'foo', I have an 'index' action, which uses a partial from the 'foobar' module.
so foo/indexSuccess.php looks something like this:
Some data here
?
I want to cache 'part2' of my foo/indexSuccess.php page, because it is very expensive (slow). I want the cache to have a lifetime of about 10 minutes.
In apps/frontend/modules/foo/config/cache.yml
I need to know how to cache 'part2' of the page (i.e. the [very expensive] partial part of the page. can anyone tell me what entries are required in the cache.yml file?