[symfony-users] Re: Cache a component

2010-02-04 Thread Phennim
As far as I know; every include_* function is just an echo wrapper of a get_* function. So you could store the result of get_component() in a var and echo it twice. Or enable template caching for the component if that is an option. On Feb 4, 3:36 pm, HAUSa

[symfony-users] Re: Cache a component

2010-02-04 Thread Florian
If it is the SQL hit which gives you a problem, you could aslo store the result in an instance attribute of your component / model. like this: getResult() { if(!$this-result) { $this-result = your resultSet; } return $this-result; On 4 fév, 15:36, HAUSa