This WordPress-based website i just released is dead slow.
I've optimised my theme a lot and get a pagespeed of 91/100 but the first time to byte is the culprit: it takes 8 up to 20 seconds.
I've installed W3 Total Cache, memcache, APC, eAccelerator, xCache, but the site keeps being super slow.
Server: CentOS 5.7 (x86_64), 2G RAM, CPU: 1 Intel(R) Celeron(R) CPU 2.80GHz Mysql 5.1 PHP: 5.2.7 Apache 2.2
If possible get your PHP updated to the latest version 5.3.8.
Before you add your caching layer you need to determine whats slowing down MySql and PHP.
You need to enable WP_Debug and eliminate any PHP errors. Look for undefined indexes, syntax errors and deprecated functions.
That 20 second to first byte is all PHP, MySql and or WordPress related. It sounds like a bad memory leak from poorly written code or extremely long query times.
To set a checkpoint use the function:
dbgx_checkpoint( $note="" ) Use the $note variable to list where the checkpoint is installed.
The profiler will you record the run times and memory usage to pinpoint any problems.
It will also give you a clear picture of the object cache if your using a WordPress object cache plugin.
Also APC, eAccelerator, xCache will not all work at the same time and blow up your site if you try it (I'm sure you probably meant you tried each of them).Tweet