I think you have two options:

1) is to use http://trac.symfony-project.com/trac/wiki/sfArrayCachePlugin
2) is to use sfFunctionCache and will be used where you are invoking 
your ClassPeer::function() and will cache it there.

I would assume you want (1) as it will make the caching transparent for 
the user of the Peer class function.

Kupo

Greg Freeman wrote:
> I have a question regarding the propel peer classes.
>
> Say you have a peer method getBlah() which returns an array of some
> values. This array could be used multiple times throughout the
> execution. The getBlah() method queries the database and creates
> result sets etc before returning the array. Every time the method is
> called these database queries are executed again.
>
> Is there any way to persist the return array after it has been run
> once and just return that on subsequent calls?
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to