Ben May: Working with massive WordPress sites, clients and enterprise

Ben May: Working with massive WordPress sites, clients and enterprise

Slow websites are bad and as websites grow in traffic, slow websites get slower. It’s often a wise move to invest a small amount of time in the early stages of a site’s life to think about performance and scaling. How you can work with larger sites when it comes to caching, file management (version control), SQL performance and front-end optimisation.

073054d5848746e939c7165bc90a507b?s=128

WP Australia

April 27, 2013
Tweet

Transcript

  1. 5.

    1% 5% 10% 10% 30% 45% Backend Dev Sysadmin Design

    (Critic) Frontend Dev Project Manager Designer (Pixel Pusher) If I was a pie chart
  2. 6.
  3. 9.

    The road to happiness 1. Servers and networks 2. Server

    side & code caching 3. Plugins or DIY? 4. Themes 5. ? 6. Profit
  4. 10.

    Firstly, how I do it 1. Batcache (advanced-cache.php) 2. APC

    or Memcached (object-cache.php) 3. Git on Beanstalk w/ auto deployments 4. Mark Jaquith’s skeleton 5. Basecamp (todo manager) 6. EdgeCast CDN (Origin Pull)
  5. 11.
  6. 20.
  7. 22.
  8. 26.
  9. 27.

    Default transient usage sucks <?php // Get any existing copy

    of our transient data if ( false === ( $blah = get_transient( 'blah' ) ) ) { // It wasn't there, so regenerate the data and // save the transient $blah = new WP_Query( 'cat=5' ); set_transient( 'blah', $blah ); } // Use $blah like you would have normally... codex.wordpress.org/Function_Reference/get_transient
  10. 28.
  11. 32.
  12. 33.
  13. 34.
  14. 35.
  15. 38.

    By 9am - 40,000 page impressions Peaked at 20,000 requests

    per second 1m+ page views for the day 250,000+ uniques for the day Twice the amount of traffic than Fox Sports* * According to the measurement company Effective Measure
  16. 39.

    As a media publisher, you live for the moment when

    you get MASSIVE traffic like this...... You love this moment, but also in the back of your mind is the fear your site will not be able to handle the demand. “ ~ Zac Zavos The Roar conversant-media.com