If you want to cache the partial named 'part2' of the 'foobar' module, you need to add these lines to the file apps/frontend/modules/foobar/config/cache.yml
_part2:
enabled: on
lifetime: 600 # 10 minutes
When you then call the partial from your index action in foo, a cached version (if available) will be shown:
<?php include_partial('foobar/part2') ?>
If you want to cache a different version of the partial for each template that calls it, you should edit the cache.yml file like this:
_part2:
enabled: on
lifetime: 600 # 10 minutes
contextual: true
Intru
2010-06-04 12:14:48