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 <jeroen_heeft_behoefte_aan_r...@hotmail.com>
wrote:
> Right now I execute a specific component twice in my layout.php: one
> time on top of the document and one time in the footer.
>
> For the result of the component is an SQL query required. But that
> query is being executed twice as well!
>
> Is it possible to cache the result of a component, which will result
> in the query not being executed the second time?

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to