>> Every time when the user wisite a url like /controller/action/, and >> the cakephp will load the models and components declared in this >> controller, which might be improvident because not every visit need >> to loac the heavy models and components class. >> For example, the url /blog/create/ ,when GET, I just want to display >> a page for the user to create a blog. >> So then what to do? config for every action's GET and POST? or code >> carefully to avoid this? >> How to do there is better? >> > > In production mode (debug set to 0) CakePHP can cache a lot of > information for you. Worry about performance when it actually becomes > an issue for your application. You might be surprised at how well > CakePHP can peform.
I agree with Chris on this point. I built some functionality in an application that slowed to a crawl (with thousands of queries) when the system was loaded with test data. Some judicious use of the excellent expects() function to manage the models being loaded and queried fixed the problem nicely. My approach: make it work, then make it fast. Regards, Langdon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
