Symfony cacheing question (cacheing a partial)

Posted by morpheous on Stack Overflow See other posts from Stack Overflow or by morpheous
Published on 2010-04-18T13:08:17Z Indexed on 2010/04/18 13:13 UTC
Read the original article Hit count: 191

Filed under:

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?

© Stack Overflow or respective owner

Related posts about symfony