Re: How to deploy cakephp app on production server?
> Is it any way to disable 'describe' command? As mentioned, disable debug mode and the describe command will not be issued often at all. The results of the describe command is always cached, but in debug mode the timeout for this cache is 10 seconds, why we often see it while developing. In my tests, disabling debug mode halved the request times. I suggest you use a stresstesting app like JMeter to simulate some load on your application and see how it works out. Personally, I ended up having to code the most used ajax parts in barebones php without using Cake - it was too much overhead. Within Cake: CakePHP has a lot of overhead, especially in the areas you mention. One can but minimize it. A lot of it comes from agressive loading of Models. One has to code carefully, and never use $uses in the AppController, or even in the controllers. I suggest always loading Model's in the functions where they are needed instead: $this->ModelName = ClassRegistry::init('ModelName'); This can really help avoiding a lot of unnecessary costly Model loading. Sadly, there seem not to be any way to load Components this way, but at least it's a start. Also, use memcached and APC, and you will be better off as well. On 26 Jan, 10:38, Hipnotik wrote: > Hi > Could you give me some instructions how to deploy cakephp application > on production server? > I know I have to disable debugging and enable cache engine... but what > else? > Maybe someperformancetips? > Is it any way to disable 'describe' command? > > Thanks for help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to deploy cakephp app on production server?
Thanks for fast reply! These informations are very helpful. Piotr On Jan 26, 10:53 am, Martin Westin wrote: > The manual entry is short but that is all that is needed for a basic > setup. > Describe commands stop as soon as you go into debug 0. > > General performance advice (Not things you do in your app. Things you > do in deployment): > Compiling php and the web server specifically if the added boost is > worth the extra work on updates. > Lookup information about improving the speed of your database server. > You will often gain some speed by using a php accelerator. They all > install a little differently and also require work on each update of > php. > Leaving the safety of Apache for Lighty of one of the other new kinds > can give further improved performance. But these need to be compared > and tested to make sure which is best for you and how much you > actually gain. > > In your application I can only suggest that you find a way to really > overload your database with data to find bottlenecks in your code. > With only a few thousand rows in every table any problem areas should > be very obvious. Whenever I don't do this I always have to revisit > code a few weeks (or hours) later and optimize. It is noce to catch it > before going public. > > On Jan 26, 10:38 am, Hipnotik wrote: > > > > > Hi > > Could you give me some instructions how to deploy cakephp application > > on production server? > > I know I have to disable debugging and enable cache engine... but what > > else? > > Maybe some performance tips? > > Is it any way to disable 'describe' command? > > > Thanks for help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to deploy cakephp app on production server?
The manual entry is short but that is all that is needed for a basic setup. Describe commands stop as soon as you go into debug 0. General performance advice (Not things you do in your app. Things you do in deployment): Compiling php and the web server specifically if the added boost is worth the extra work on updates. Lookup information about improving the speed of your database server. You will often gain some speed by using a php accelerator. They all install a little differently and also require work on each update of php. Leaving the safety of Apache for Lighty of one of the other new kinds can give further improved performance. But these need to be compared and tested to make sure which is best for you and how much you actually gain. In your application I can only suggest that you find a way to really overload your database with data to find bottlenecks in your code. With only a few thousand rows in every table any problem areas should be very obvious. Whenever I don't do this I always have to revisit code a few weeks (or hours) later and optimize. It is noce to catch it before going public. On Jan 26, 10:38 am, Hipnotik wrote: > Hi > Could you give me some instructions how to deploy cakephp application > on production server? > I know I have to disable debugging and enable cache engine... but what > else? > Maybe some performance tips? > Is it any way to disable 'describe' command? > > Thanks for help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How to deploy cakephp app on production server?
Hi Could you give me some instructions how to deploy cakephp application on production server? I know I have to disable debugging and enable cache engine... but what else? Maybe some performance tips? Is it any way to disable 'describe' command? Thanks for help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---