before John David Anderson tips,
try to configure apache to fit your site needs.
tweak mysql conf. if your queries took more then few ms.
use nix ramdisk on  php files for disk IO





On Dec 15, 9:21 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Dec 15, 2007, at 1:12 PM, Chris Hartjes wrote:
>
>
>
>
>
> > On Dec 15, 2007 3:00 PM, Pillow <[EMAIL PROTECTED]> wrote:
>
> >> Hi,
> >> I've website which has about 30000 uniq visits per day (up to 1500
> >> online). The problem is that CMS written on CakePHP consumes too much
> >> of CPUs power.
>
> >> Almost everything is beeing cached (whole views, sometimes db
> >> results).
>
> >> In addition the same site was earlier driven by some poor free system
> >> which hadn't even had cache, and the CPU usage was about 6 times
> >> less.
>
> >> Do you have any tricks and tips to speed up system based on cake?
>
> > Sounds like it was poorly designed, as 30000 hits a day isn't what I
> > would consider high traffic.  However, I would suggest the following:
>
> (agreed)
>
> > 1) install a PHP opcode cache like APC
> > 2) make sure you have appropriate database indexes in place
> > 3) spend some time profiling your code using tools like Xdebug and
> > Cachegrind to find out where the slow spots really are.
>
> I might also add
>
> 4) Move rewrite instructions to apache conf rather than .htaccess
> 5) Use unbind model (or something similar) more extensively.
>
> -- John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to