SlideShare a Scribd company logo
Optimizing For Performance
       Make Your WordPress Blog Faster




Chris Olbekson
http://C3mdigital.com
http://Twitter.com/chris_olbekson
http://wordpress.org/support/profile/c3mdigital
Why Performance Matters?

• User Experience
• Search Engine Rankings
• Server Resources / Costs
• Digg Slashdot Effect
• Clients / Users Will Love You
1   Front End Performance

2   Caching WordPress

3   Server Optimization
Front End Performance
Basic Concepts

1.   Make Fewer File Requests
2.   Progressive Rendering
3.   Concurrent Downloads
4.   Expires Headers / Browser Caching
5.   Reduce File Size With gzip Encoding
Performance Grading
         YSlow from Yahoo
         Use a CDN
         Make fewer HTTP requests
         Add Expires headers
         Compress components with gzip
         Put CSS at top
         Put Javascript at bottom
         Avoid CSS expressions
         Make JavaScript and CSS external
         Reduce DNS lookups
         Minify JavaScript and CSS
         Avoid URL redirects
         Configure Etags
         Make Ajax cacheable
         Reduce cookie size
         Use cookie-free domains
         Do not scale images
Performance Grading
           Google Page Speed
           Parallelize Downloads Across
           Hostnames
           Specify image dimensions
           Leverage browser caching
           Minify HTML
           Minify JavaScript
           Optimize Images
           Serve Static Content from a
           cookieless domain
           Specify a Vary Accecpt-
           Encoding header
           Specify a cache validator
           Remove unused CSS
           Use efficient CSS selectors
Front End Performance
             Lets Start Optimizing
1. Make Fewer File Requests
       CSS Sprites




 http://wordcamp-houston.pastebin.com/Lcu93yjj
Front End Performance
             Lets Start Optimizing
1. Make Fewer File Requests
       CSS Sprites




 http://wordcamp-houston.pastebin.com/VLAYsFGv
Front End Performance
              Lets Start Optimizing
1. Make Fewer File Requests
       CSS Sprites

  http://spriteme.org/
  SpriteMe does all the work for you
  And renders the changes live in the
  Browser to verify it worked
Front End Performance
             Lets Start Optimizing
1. Make Fewer File Requests
       CSS Sprites
       Combine and Minify External JavaScript and CSS

           W3 Total Cache Does This For You
Front End Performance
             Lets Start Optimizing
1. Make Fewer File Requests
       CSS Sprites
       Combine and Minify External JavaScript and CSS
       Death by Share This Social Media buttons
Front End Performance
             Lets Start Optimizing
      CSS Sprites
      Combine and Minify External JavaScript and CSS
      Death by Share This Social Media Buttons
      Improving Social Media Button Performance

  Embed social media buttons in <iframe>’s to promote progressive
  rendering




http://wordcamp-houston.pastebin.com/YsEfB4hZ
Front End Performance
                Lets Start Optimizing
  Concurrent Downloads

CSS at the Top and Js at the Bottom
= “The Waterfall Effect”
JavaScript in <head> causes the white
Page effect



  Tip: Use Google CDN for jQuery




http://wordcamp-houston.pastebin.com/hWegNNeV
Front End Performance
         Lets Start Optimizing
 Leverage Browser Caching with Expires Headers and
 Public/Proxy Cache Control Headers
 Enable gzip Compression for Reduced File Sizes




                                 =
http://wordcamp-houston.pastebin.com/9C8nQNTT
Caching WordPress
             Lets Optimize Some More

Caching increases performance 10x to 1000x
Types of Caching:
  Static Page Caching
  Opcode(PHP) & Object Caching with:
     A.P.C., eAccelerator, X-Cache
  Memcached Server with PECL Memcache Extension
  WordPress Transient API
Caching WordPress
              Lets Optimize Some More
Static Page Caching >> Fast

    Stores a WordPress page as static HTML
    Cache can be rebuilt via page loads ->> Good
    Cache can be rebuilt via WordPress cron job >> Much Better

    Always server non logged in users a static version of the page
Caching WordPress
          Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster


       Best Performance when running PHP as DSO(mod_php)
       Does not work as well when running mod_fcgid (cPanel)
       Better with mod_fastcgi
       Does not work with suPHP
Caching WordPress
          Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
        A.P.C.
                                 Caches PHP
                                 in-memory key/value store
                                 Stable
                                 Relatively Easy to Install
                                 Easy to Configure
                                 Supports WordPress built in Object Caching API
                                 Use with Plugins
                                       W3-Total Cache >> Fastest
                                       Mark Jaquith’s APC Object-Cache Backend
                                     Plugin

                              Does not work with Zend Optimizer
Caching WordPress
            Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
         A.P.C. – Compile from Source




http://wordcamp-houston.pastebin.com/XTE9Dti5
Caching WordPress
          Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
        eAccelerator
                                Caches PHP
                                in-memory key/value store
                                Stable >>Most Stable
                                Easy to Install
                                Easy to Configure
                                Supports WordPress built in Object Caching API
                                      Stopped Supporting Object Cache after
                                    version.9.5.3 current version=0.9.6.1

                                    Can be used as a Zend extesion
Caching WordPress
          Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
        X-Cache
                                Caches PHP
                                in-memory key/value store
                                Not as Stable
                                Easy to Install
                                Easy to Configure
                                Supports WordPress built in Object Caching API
                                Harder to Configure
Caching WordPress
          Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
        Memcached + Memcached Server
                               Persist across multiple servers
                               Cache stored in memory
                               Harder to configure
                               Supports WordPress built in Transient API
                               Used across WordPress.com server infrastructure
                               Isn’t effected by web server restarts
                               Works together with Batcache and WordPress
                              Object Cache
Caching WordPress
             Lets Optimize Some More
Static Page Caching + Opcode Caching >> Much Faster
          Memcached + WordPress Transient API
    Transients are small fragments of data that you expect to expire
    that WordPress stores as cache in MySQL

    If Memcached is installed WordPress will store the cache in memory
Caching WordPress
               Lets Optimize Some More
   Static Page Caching + Opcode Caching >> Much Faster
             Memcached + WordPress Transient API

                                    Get Twitter status updates and store
                                    them as a Transient. You choose
                                    when they expire. If Transient is
                                    expired automatically returns false.




http://wordcamp-houston.pastebin.com/ndWRB0WB
Server Optimization
 LAMP Stack                             LEMP Stack
Traditional Server environment          Alternate Server environment
Linux –Apache-MySQL-PHP                 Linux-NGINX-MySQL-PHP

                    Choose Your Flavor of Linux
                   Arch Linux 2010.05 (i386 and x86_64)
                   CentOS 5.5 (i386 and x86_64)
                   Debian 5.0 (i386 and x86_64)
                   Fedora 13 (i386 and x86_64)
                   Slackware 13.1 (i386 and x86_64)
                   Ubuntu 10.04 LTS (i386 and x86_64)
                   OpenSUSE 11.0
                   Gentoo 2008.0 (i386 and x86_64)
Server Optimization
LAMP Stack
Linux –Apache-MySQL-PHP

                          Apache Web Server
                          •Why are there so many directives?
                          •Why are dynamic vhosts so darned hard?
                          •Hackers Love it!
Server Optimization
                           LEMP LEAP Stack
                     Insanely Fast WordPress
                     Linux-NGINX (Reverse Proxy)-Apache-PHP
Nginx is a lightweight, high-performance Web server/reverse proxy that does
one thing really well and that is to serve content at insanely fast speeds.

Nginx listens for http connections on port:80 and serves static content
directly while passing off the PHP to the Apache backend. Apache vhost must
be changed to listen on alternate port.
Server Optimization
       LEAP Stack Benchmark Results

       # ab –n 1000 –c 100 http://mywpsite.com/

       1000 Requests carried out 100 at a time

       Result:
       1712.33 Requests completed per second

        The Server:
        XEN VPS w/ Debian Lenny 1000M Ram

        WordPress Environment:
        W3-Total Cache using Memcached Object
        Cache and enhanced disk page cache

More Related Content

What's hot (18)

PPTX
Tuning the Performance of Your ColdFusion Environment to Racecar Specs!
Hostway|HOSTING
 
PPTX
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
PDF
S903 palla
Andrew Khoury
 
PPTX
How to Install Magento on Google Cloud Engine (GCE)
Cloudways
 
ZIP
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
ODP
The secret life of a dispatcher (Adobe CQ AEM)
Venugopal Gummadala
 
PPTX
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 
PDF
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Vlad Lasky
 
KEY
Performance Tuning - MuraCon 2012
eballisty
 
PPT
High Performance WordPress
Barry Abrahamson
 
PPT
ServerBeach and WordPress BlogWorldExpo 2007
Barry Abrahamson
 
PDF
Adobe AEM Maintenance - Customer Care Office Hours
Andrew Khoury
 
PDF
High Performance WordPress II
Barry Abrahamson
 
PPT
Configuring Apache Servers for Better Web Perormance
Spark::red
 
PDF
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
PDF
Web agencies: An analysis of the OVH infrastructure to optimise your web proj...
OVHcloud
 
PPTX
Improving Website Performance with Memecached Webinar | Achieve Internet
Achieve Internet
 
PPTX
Tips for Fixing a Hacked WordPress Site - WordCamp Sydney 2016
Vlad Lasky
 
Tuning the Performance of Your ColdFusion Environment to Racecar Specs!
Hostway|HOSTING
 
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
S903 palla
Andrew Khoury
 
How to Install Magento on Google Cloud Engine (GCE)
Cloudways
 
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
The secret life of a dispatcher (Adobe CQ AEM)
Venugopal Gummadala
 
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 
Make WordPress Fly With Virtual Server Hosting - WordCamp Sydney 2014
Vlad Lasky
 
Performance Tuning - MuraCon 2012
eballisty
 
High Performance WordPress
Barry Abrahamson
 
ServerBeach and WordPress BlogWorldExpo 2007
Barry Abrahamson
 
Adobe AEM Maintenance - Customer Care Office Hours
Andrew Khoury
 
High Performance WordPress II
Barry Abrahamson
 
Configuring Apache Servers for Better Web Perormance
Spark::red
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
Web agencies: An analysis of the OVH infrastructure to optimise your web proj...
OVHcloud
 
Improving Website Performance with Memecached Webinar | Achieve Internet
Achieve Internet
 
Tips for Fixing a Hacked WordPress Site - WordCamp Sydney 2016
Vlad Lasky
 

Viewers also liked (8)

PPTX
Wordpress optimization
paudelvinay
 
PPTX
Optimizing WordPress for Speed and Conversions by David Vogelpohl
Affiliate Summit
 
PPTX
Marrying CDNs with Front-End Optimization
Strangeloop
 
PDF
The Dark Side of the WordPress Speed Optimizations
SiteGround.com
 
PDF
Wordpress horsepower
Ross Johnson
 
PDF
Speed Up Wordpress, Wordpress Horsepower
Ross Johnson
 
PDF
Pagespeed what, why, and how it works
Ilya Grigorik
 
PPT
Selenium Architecture
rohitnayak
 
Wordpress optimization
paudelvinay
 
Optimizing WordPress for Speed and Conversions by David Vogelpohl
Affiliate Summit
 
Marrying CDNs with Front-End Optimization
Strangeloop
 
The Dark Side of the WordPress Speed Optimizations
SiteGround.com
 
Wordpress horsepower
Ross Johnson
 
Speed Up Wordpress, Wordpress Horsepower
Ross Johnson
 
Pagespeed what, why, and how it works
Ilya Grigorik
 
Selenium Architecture
rohitnayak
 
Ad

Similar to Optimizing WordPress for Performance - WordCamp Houston (20)

PPTX
Caching 101
Andy Melichar
 
PDF
Screaming Fast Wpmu
djcp
 
PDF
Wordpress optimization
Almog Baku
 
PDF
Improve WordPress performance with caching and deferred execution of code
Danilo Ercoli
 
PDF
Php go vrooom!
Elizabeth Smith
 
PDF
Making WordPress Fly
East Bay WordPress Meetup
 
PDF
Optimizing wp
Mark Kelnar
 
PPTX
Show Me The Cache!
Andy Melichar
 
PDF
Dutch php conference_2010_opm
isnull
 
PDF
Optimizing Your Frontend Performance
Thomas Weinert
 
PPTX
A crash course in scaling wordpress
GovLoop
 
PPTX
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
Jonathan Klein
 
PPTX
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe
 
PDF
Less and faster – Cache tips for WordPress developers
Seravo
 
ODP
Clug 2011 March web server optimisation
grooverdan
 
PPTX
Northeast PHP - High Performance PHP
Jonathan Klein
 
PDF
WordPress Performance & Scalability
Joseph Scott
 
PPTX
I Can Haz More Performanz?
Andy Melichar
 
PDF
The Need For Speed: Caching Fundamentals
Frankie Jarrett
 
PDF
Cache Rules Everything Around Me
Russell Heimlich
 
Caching 101
Andy Melichar
 
Screaming Fast Wpmu
djcp
 
Wordpress optimization
Almog Baku
 
Improve WordPress performance with caching and deferred execution of code
Danilo Ercoli
 
Php go vrooom!
Elizabeth Smith
 
Making WordPress Fly
East Bay WordPress Meetup
 
Optimizing wp
Mark Kelnar
 
Show Me The Cache!
Andy Melichar
 
Dutch php conference_2010_opm
isnull
 
Optimizing Your Frontend Performance
Thomas Weinert
 
A crash course in scaling wordpress
GovLoop
 
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
Jonathan Klein
 
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe
 
Less and faster – Cache tips for WordPress developers
Seravo
 
Clug 2011 March web server optimisation
grooverdan
 
Northeast PHP - High Performance PHP
Jonathan Klein
 
WordPress Performance & Scalability
Joseph Scott
 
I Can Haz More Performanz?
Andy Melichar
 
The Need For Speed: Caching Fundamentals
Frankie Jarrett
 
Cache Rules Everything Around Me
Russell Heimlich
 
Ad

More from Chris Olbekson (6)

PDF
Magical WordPress Development with Vagrant
Chris Olbekson
 
PDF
Managing themes and server environments with extensible configuration arrays
Chris Olbekson
 
KEY
The Query the Whole Query and Nothing but the Query
Chris Olbekson
 
PDF
WordPress Houston Meetup - Using WordPress as a CMS
Chris Olbekson
 
PDF
Cognac gautier presentation
Chris Olbekson
 
PPTX
Theme frameworks & child themes
Chris Olbekson
 
Magical WordPress Development with Vagrant
Chris Olbekson
 
Managing themes and server environments with extensible configuration arrays
Chris Olbekson
 
The Query the Whole Query and Nothing but the Query
Chris Olbekson
 
WordPress Houston Meetup - Using WordPress as a CMS
Chris Olbekson
 
Cognac gautier presentation
Chris Olbekson
 
Theme frameworks & child themes
Chris Olbekson
 

Recently uploaded (20)

PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 

Optimizing WordPress for Performance - WordCamp Houston

  • 1. Optimizing For Performance Make Your WordPress Blog Faster Chris Olbekson http://C3mdigital.com http://Twitter.com/chris_olbekson http://wordpress.org/support/profile/c3mdigital
  • 2. Why Performance Matters? • User Experience • Search Engine Rankings • Server Resources / Costs • Digg Slashdot Effect • Clients / Users Will Love You
  • 3. 1 Front End Performance 2 Caching WordPress 3 Server Optimization
  • 4. Front End Performance Basic Concepts 1. Make Fewer File Requests 2. Progressive Rendering 3. Concurrent Downloads 4. Expires Headers / Browser Caching 5. Reduce File Size With gzip Encoding
  • 5. Performance Grading YSlow from Yahoo Use a CDN Make fewer HTTP requests Add Expires headers Compress components with gzip Put CSS at top Put Javascript at bottom Avoid CSS expressions Make JavaScript and CSS external Reduce DNS lookups Minify JavaScript and CSS Avoid URL redirects Configure Etags Make Ajax cacheable Reduce cookie size Use cookie-free domains Do not scale images
  • 6. Performance Grading Google Page Speed Parallelize Downloads Across Hostnames Specify image dimensions Leverage browser caching Minify HTML Minify JavaScript Optimize Images Serve Static Content from a cookieless domain Specify a Vary Accecpt- Encoding header Specify a cache validator Remove unused CSS Use efficient CSS selectors
  • 7. Front End Performance Lets Start Optimizing 1. Make Fewer File Requests CSS Sprites http://wordcamp-houston.pastebin.com/Lcu93yjj
  • 8. Front End Performance Lets Start Optimizing 1. Make Fewer File Requests CSS Sprites http://wordcamp-houston.pastebin.com/VLAYsFGv
  • 9. Front End Performance Lets Start Optimizing 1. Make Fewer File Requests CSS Sprites http://spriteme.org/ SpriteMe does all the work for you And renders the changes live in the Browser to verify it worked
  • 10. Front End Performance Lets Start Optimizing 1. Make Fewer File Requests CSS Sprites Combine and Minify External JavaScript and CSS W3 Total Cache Does This For You
  • 11. Front End Performance Lets Start Optimizing 1. Make Fewer File Requests CSS Sprites Combine and Minify External JavaScript and CSS Death by Share This Social Media buttons
  • 12. Front End Performance Lets Start Optimizing CSS Sprites Combine and Minify External JavaScript and CSS Death by Share This Social Media Buttons Improving Social Media Button Performance Embed social media buttons in <iframe>’s to promote progressive rendering http://wordcamp-houston.pastebin.com/YsEfB4hZ
  • 13. Front End Performance Lets Start Optimizing Concurrent Downloads CSS at the Top and Js at the Bottom = “The Waterfall Effect” JavaScript in <head> causes the white Page effect Tip: Use Google CDN for jQuery http://wordcamp-houston.pastebin.com/hWegNNeV
  • 14. Front End Performance Lets Start Optimizing Leverage Browser Caching with Expires Headers and Public/Proxy Cache Control Headers Enable gzip Compression for Reduced File Sizes = http://wordcamp-houston.pastebin.com/9C8nQNTT
  • 15. Caching WordPress Lets Optimize Some More Caching increases performance 10x to 1000x Types of Caching: Static Page Caching Opcode(PHP) & Object Caching with: A.P.C., eAccelerator, X-Cache Memcached Server with PECL Memcache Extension WordPress Transient API
  • 16. Caching WordPress Lets Optimize Some More Static Page Caching >> Fast Stores a WordPress page as static HTML Cache can be rebuilt via page loads ->> Good Cache can be rebuilt via WordPress cron job >> Much Better Always server non logged in users a static version of the page
  • 17. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster Best Performance when running PHP as DSO(mod_php) Does not work as well when running mod_fcgid (cPanel) Better with mod_fastcgi Does not work with suPHP
  • 18. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster A.P.C. Caches PHP in-memory key/value store Stable Relatively Easy to Install Easy to Configure Supports WordPress built in Object Caching API Use with Plugins W3-Total Cache >> Fastest Mark Jaquith’s APC Object-Cache Backend Plugin Does not work with Zend Optimizer
  • 19. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster A.P.C. – Compile from Source http://wordcamp-houston.pastebin.com/XTE9Dti5
  • 20. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster eAccelerator Caches PHP in-memory key/value store Stable >>Most Stable Easy to Install Easy to Configure Supports WordPress built in Object Caching API Stopped Supporting Object Cache after version.9.5.3 current version=0.9.6.1 Can be used as a Zend extesion
  • 21. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster X-Cache Caches PHP in-memory key/value store Not as Stable Easy to Install Easy to Configure Supports WordPress built in Object Caching API Harder to Configure
  • 22. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster Memcached + Memcached Server Persist across multiple servers Cache stored in memory Harder to configure Supports WordPress built in Transient API Used across WordPress.com server infrastructure Isn’t effected by web server restarts Works together with Batcache and WordPress Object Cache
  • 23. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster Memcached + WordPress Transient API Transients are small fragments of data that you expect to expire that WordPress stores as cache in MySQL If Memcached is installed WordPress will store the cache in memory
  • 24. Caching WordPress Lets Optimize Some More Static Page Caching + Opcode Caching >> Much Faster Memcached + WordPress Transient API Get Twitter status updates and store them as a Transient. You choose when they expire. If Transient is expired automatically returns false. http://wordcamp-houston.pastebin.com/ndWRB0WB
  • 25. Server Optimization LAMP Stack LEMP Stack Traditional Server environment Alternate Server environment Linux –Apache-MySQL-PHP Linux-NGINX-MySQL-PHP Choose Your Flavor of Linux Arch Linux 2010.05 (i386 and x86_64) CentOS 5.5 (i386 and x86_64) Debian 5.0 (i386 and x86_64) Fedora 13 (i386 and x86_64) Slackware 13.1 (i386 and x86_64) Ubuntu 10.04 LTS (i386 and x86_64) OpenSUSE 11.0 Gentoo 2008.0 (i386 and x86_64)
  • 26. Server Optimization LAMP Stack Linux –Apache-MySQL-PHP Apache Web Server •Why are there so many directives? •Why are dynamic vhosts so darned hard? •Hackers Love it!
  • 27. Server Optimization LEMP LEAP Stack Insanely Fast WordPress Linux-NGINX (Reverse Proxy)-Apache-PHP Nginx is a lightweight, high-performance Web server/reverse proxy that does one thing really well and that is to serve content at insanely fast speeds. Nginx listens for http connections on port:80 and serves static content directly while passing off the PHP to the Apache backend. Apache vhost must be changed to listen on alternate port.
  • 28. Server Optimization LEAP Stack Benchmark Results # ab –n 1000 –c 100 http://mywpsite.com/ 1000 Requests carried out 100 at a time Result: 1712.33 Requests completed per second The Server: XEN VPS w/ Debian Lenny 1000M Ram WordPress Environment: W3-Total Cache using Memcached Object Cache and enhanced disk page cache