your site and its static assets • How you cache WordPress’s generated pages so it can work a little less • How well your theme and plugins are optimized Tuesday, August 13, 13
optimize for lots of traffic -- it’s not impossible, but after a while, you’ll need more • Virtual private servers give a lot more flexibility for just a little more a month • Larger sites may want to consider a dedicated server • Managed WordPress hosting is a great option for budgets between VPS and dedicated servers; a LOT less to think about Tuesday, August 13, 13
service • WPEngine: Managed WordPress hosting that gives much more flexibility than WordPress.com. Pricing tiered by bandwidth usage. http:// www.wpengine.com • DreamPress: New service from DreamHost; very beta, I haven’t tested it yet. Pricing flat at $19.95/ mo. http://dreamhost.com Tuesday, August 13, 13
and extremely fast Web server, used in place of or in front of Apache (though I like to use it in place of Apache); http://nginx.org • PHP-FPM (PHP FastCGI Process Manager); server process that handles all PHP requests; http://php- fpm.org • MySQL 5.5 uses InnoDB, a more robust database engine, by default; http://www.mysql.com Tuesday, August 13, 13
with a very minimal memory footprint (great for small VPS setups) • Only runs PHP when it is needed, saving on memory usage overall • Well-supported in the WordPress community • http://wordpress.org/plugins/nginx-helper/ Tuesday, August 13, 13
installed • APC is an opcode cache -- it basically stores WordPress in memory, helping WordPress run much faster than being reinterpreted from disk • http://php.net/manual/en/book.apc.php Tuesday, August 13, 13
makes things much faster both on the front end of the site as well as on the back end (more resources available for administration) • A necessity for busy sites Tuesday, August 13, 13
and works fairly well on most shared hosts; it’s easy to configure and typically trouble-free; http:// wordpress.org/plugins/wp-super-cache/ • W3 Total Cache is the most comprehensive; you can get a lot out of it especially on a VPS or dedicated server, but it requires fine-tuned configuration; http://wordpress.org/plugins/w3- total-cache/ Tuesday, August 13, 13
typically much you can do. Disk (enhanced) caching for pages will get you some gains. • Use APC where you can to store things like the object cache and database cache, but watch that memory usage if you’re on a low- memory VPS • W3 Total Cache can integrate with many content delivery networks including CloudFront and MaxCDN (more on CDN in a few) • Ensure browser caching options are enabled • Installation guide: http://wordpress.org/plugins/w3-total-cache/ installation/ Tuesday, August 13, 13
need a caching plugin; just make sure you have the nginx Helper plugin installed, and it will be sure to purge nginx’s cache at the appropriate time • http://rtcamp.com/wordpress-nginx/tutorials/ single-site/fastcgi-cache-with-purging/ Tuesday, August 13, 13
great, but if you are loading jQuery three times... • Check for and deactivate any plugins you don’t use -- these often litter every page load with scripts, some unnecessary • Make sure plugins and themes are using wp_enqueue_script to load JavaScript; this ensures WordPress only loads certain scripts once Tuesday, August 13, 13
load at the footer of the page. Loading scripts in the header or body (with the exception of a few, notably Google Analytics) can block page load • Don’t use inline CSS if you can at all help it • Minify your CSS and JavaScript files; W3 Total Cache can do this • Make sure gzip compression is turned on to reduce the amount of bandwidth you use; again, W3 Total Cache makes this easy to take care of • Test your frontend with tools like YSlow (http://developer.yahoo.com/ yslow/) and Google Page Speed (https://developers.google.com/ speed/pagespeed/) Tuesday, August 13, 13
you upload to blog posts/the media library, etc. • Moving static assets to a content delivery network will improve performance and reduce load on your server Tuesday, August 13, 13
distributes your media library images over WordPress.com’s CDN, but it does not distribute your theme files. http://wordpress.org/plugins/ jetpack/ • MaxCDN: Well supported by W3 Total Cache and overall in the WordPress community. Many large blogs use MaxCDN and costs are reasonable (using flat monthly fees). http:// www.maxcdn.com • Amazon CloudFront: Distribute your static files over Amazon’s network; costs are reasonable but aren’t flat -- you pay for the bandwidth you use. http://aws.amazon.com/cloudfront/ Tuesday, August 13, 13