Quantcast

persistModel documentation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

persistModel documentation

majna

There is no documentation for $persistModel variable . What's basic
usage, and where  or when should I  use it?
tnx.

...and tnx for cake 1.1.11 !


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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: persistModel documentation

Matt Adams

majna wrote:

> There is no documentation for $persistModel variable . What's basic
> usage, and where  or when should I  use it?
> tnx.

If you have a large number of models (some of my applications have
around 1000 of these) you'll probably want to end up using the
"persistModel" option - it writes the model objects to cache on first
request and then reads from cache on all subsequent requests.  This can
be very useful if your model objects and whatnot require a lot of
processing to construct.

I use this in conjunction with APC or some other PHP caching engine.


Cheers,

Matt
--
BASIC: A programming language.  Related to certain social diseases
in that those who have it will not admit it in polite company.

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

Loading...