Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Server over load because of Mysql

which cache to use

     

showtime

1:02 am on Jul 28, 2007 (gmt 0)

10+ Year Member



Hi

i have a website use php and mysql with lots of dynamic pages.

My server over loads in busy hours.

I want to use cache for dynamic pages. But dont know to much about it.

I made some search i see some scripts as

phpcache lite

php APC

eAccelerator

which is better any suggestions?

Thanks

StudioKraft

3:21 am on Jul 28, 2007 (gmt 0)

5+ Year Member



Hello,

I've used eAccelerator with success for busy sites - the one downside to this cache system is that its directory apparently needs to be deleted of all cached files before restarting Apache. This is one step that is easily forgotten without a special script to do it automatically and can be cumbersome.

The first thing that you would want to do before adding any cache system is to see if/how you can optimize your database queries. Use MySQL's EXPLAIN function to see how well a query is performing:

[dev.mysql.com...]

Usually, adding indexes on fields that are queried often helps in the overall performance of the MySQL-based web site, but the queries themselves may be able to be rewritten for better performance.

Hope this helps,

SK

[edited by: coopster at 9:32 pm (utc) on July 28, 2007]
[edit reason] changed link to authoritative domain [/edit]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month