• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Optimizing WordPress -  WordPress SF Meetup April 2012
 

Optimizing WordPress - WordPress SF Meetup April 2012

on

  • 1,586 views

 

Statistics

Views

Total Views
1,586
Views on SlideShare
1,566
Embed Views
20

Actions

Likes
5
Downloads
0
Comments
0

2 Embeds 20

http://www.blogcodi.net 18
http://www.twylah.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Optimizing WordPress -  WordPress SF Meetup April 2012 Optimizing WordPress - WordPress SF Meetup April 2012 Presentation Transcript

    • WordPressOptimization WordPress Optmization Ben Metcalfe | Co-founder, WP Engine @dotBen | ben@wpengine.com San Francisco WordPress Meetup – April 23rd 2012
    • WordPressOptimization
    • WordPressOptimization
    • WordPressOptimization Before we begin…
    • WordPressOptimization Why? • Um, why not? • Keep readers/customers happy! • Stay up under heavy load • Save $$$
    • WordPressOptimization Level 1 Let‟s get the basics out the way :)
    • WordPressOptimization Keep WP up to date Why wouldn‟t you?
    • WordPressOptimization Caching plugins FTW!! W3-Total-Cache also: WPSuperCache, BatCache
    • WordPressOptimization Deactivate unused plugins + delete plugins you don‟t use at all
    • WordPressOptimization Avoid bad plugins Include (but not limited to) • backupwordpress • backwpup • broken-link-checker • dynamic-related-posts • file-commander • google-sitemap-generator • LinkMan (MyReviewPlugin Link Man) • MyRP (MyReviewPlugin) • wp-symposium-alerts
    • WordPressOptimization Review your theme HTML • does it validate? • CSS at the top, JS at the bottom (not inline) PHP • Any weird code (if it looks bad, it probably is) • file_get_contents() / fgets()
    • WordPressOptimization Is your host slow?
    • WordPressOptimization Level 2
    • WordPressOptimization Offloading (poor-mans CDN) Serve images via Flickr/etc
    • WordPressOptimization Feedburn your RSS feed How many requests to your blog are /feed?
    • WordPressOptimization Repair your MySQL DB Sometimes you need to tidy your room :) PHPMyAdmin, OptimizeDB, manually
    • WordPressOptimization Load from multiple sub- domains good: foo1.yourdomain.com, foo2.yourdomain.com better: foo1.otherdomain.com, foo2.otheromain2.com
    • WordPressOptimization Browser Caching HTTP Cache-Control Expires headers Entity Tags (W3-Total-Cache, WPSuperCache)
    • WordPressOptimization Level 3 Mostly assumes SSH access
    • WordPressOptimization Log slow MySQL queries Good HOWTO: http://hackmysql.com/nontech
    • WordPressOptimization Check site with Profile Tools WP-Tuner WPDB Profiling http://speed.wpengine.com YSlow
    • WordPressOptimization CDN MaxCDN (we use parent company @ WP Engine) Amazon CloudFront CloudFlare Use all the time or just „emergencies‟
    • WordPressOptimization „Smush‟ your images WPSmush.it plugin
    • WordPressOptimization Opcode cache, eg APC php-apc + W3-Total-Cache
    • WordPressOptimization Apache optimizations Disable .htaccess, use httpd.conf
    • WordPressOptimization Dedicated MySQLDB Box
    • WordPressOptimization Level 4 Hitting the big time
    • WordPressOptimization Reverse-proxy with nginx Run Apache on port 8080 Cache statics (good HOWTO on wp-performance.com)
    • WordPressOptimization Varnish cache Save/server static pages to/from disk Ideally don‟t run Varnish on port 80, Avoid cookie issues
    • WordPressOptimization Memcache Cache WordPress Object Cache Memcached plugin + PECL memcache extension Ideally run Memcache on separate box wp-memcached-manager – admin plugin
    • WordPressOptimization HyperDB Replaces wpdb class Multiple database servers Replication + failover for redundancy Partitioning for scale
    • WordPressOptimization Boss Level
    • WordPressOptimization Static site on Amazon S3 “Movable Type” Model 100% Static site
    • WordPressOptimization #Fails
    • WordPressOptimization DON‟T edit core files! No matter what “performance” benefit you think it will make!
    • WordPressOptimization Amazon EC2 … isn‟t a silver bullet
    • WordPressOptimization Thank you! ben@wpengine.com http://wpengine.com
    • WordPressOptimization Q&A or email: ben@wpengine.com