Is your website slow?
Here is how to speed it up!
Improve website performanceGoogle Webmaster Tools Labs > Site performance Read "Page speed suggestions"
ProfilerSee where your biggest bottlenecks are (identify that low-hanging fruit) before spending time on things you think are causing bottlenecks
xdebug apt-get install php-xdebug Simple & easy to setup
Webgrind Separate install - just a directory with php code that you need to unpack in a web root, makes viewing the generated xdebug data in a browser a pleasure
PHP op-code cacheSaves the parse-and-compile step by doing it once and caches the result
XCache (the best)
MySQL query cacheAdds a read-through cache layer to MySQL
Memcached Simple to setup
Set threshold for slow MySQL queries to zeroEnable the slow query log Logs all distinct queries, how many times each is run and how long each takes to process
Figuring out how to identify memcache keys that need to be invalidated is non-trivial. Use the slow query log to see what is actually being run, then trace back to figure out which actions change data that other actions read
WordPressInstall "WP Super Cache"
Completely eliminates PHP from cached requests by serving static HTML content
Ajax-ify your siteUse Ajax URLs and create an HTML snapshot
Enable gzipWP Super Cache does it for you
How to do it yourself
|