• Home
  • Home Office
    • Current Home Office
    • The Making Of Version 7
    • Home Office FAQ
    • Home Office Version 6
    • The Making Of Version 6
    • Home Office Version 5
    • Home Office Older than 5.0
    • Home Office Comments
    • Home Office Updates
    • Home Office Infringers
    • Home Office Thieves
  • Blog
  • Ignyter
  • Flickr
  • Twitter
  • About
  • Archive
  • Contact
  • PostsComments

Stefan Didak

Home of the World Famous Home Office Setup

  • The Whole Blog
  • Personal
    • Funny
    • Rant
    • Restaurants
    • Travel
  • Photography
  • Hardware
  • Software
    • Apple Software
    • Software Development
    • Windows Software
  • The Web
  • Web-Bits
  • WiLMa
You are here: Home / Lengthy / Making WordPress Fly with APC, Varnish, Memcached and more!

Making WordPress Fly with APC, Varnish, Memcached and more!

October 20, 2013 by Stefan Didak 1 Comment

It appears that after my previous presentation on developer tools at the East Bay WordPress Meetup I’ve found myself doing another presentation, this time about how to make WordPress fly. Like a bat out of hell. That, of course is both a BatCache and a MeatLoaf reference. Pick whichever suits you based on your age category. 🙂

You can download the PDF of the presentation slides here (5.2 MB)

This presentation does NOT cover the regular caching plugins but rather on how you can optimize your server (and your code) to make use of a much higher performant level of caching. I will be very quickly covering the levels of caching supported by WordPress itself (the run-time cache, transient cache, object cache, page cache and fragment cache).

After that a quick introduction to various cloud hosting services such as Linode and Digital Ocean and why you might consider hosting your WordPress sites and applications there. In the process I will show off the difference between a (generally solid and well known) $20/month shared host and a $5/month “droplet” on Digital Ocean, showing the same site and its performance between the two.

making_wordpress_fly_1.019

Because it’s not just a matter of switching hosts but what you can do on your own virtual instance running in the cloud the remainder of the presentation is all about what you can do, and why, and how, to get that much performance out of a $5/month Digital Ocean “droplet”.

The main area of focus of the presentation is all about opcode caching (OpCache, APC, XCache, etc.) and what it is, how it works, and why you should consider always having opcode caching enabled on your WordPress server if you care about performance. I’ll also briefly cover the Batcache plugin and how it works well with APC.

The next big thing that makes all the difference is dumping Apache and making the switch to Nginx. While this may not be as easy as it should it’s not really that intimidating and there are a few things to know and keep in mind. I’ll also be covering why Nginx is a much better choice if you care about performance without having to spend a lot of extra resources (CPU and Memory) that will drive up your hosting bills.

making_wordpress_fly_2.052

As an alternative to regular page caching and plugins I’ll be covering Varnish, the reverse proxy. How it works, why it works, and what you should watch out for because Varnish is great but not always and it depends on the situation, your infrastructure, and what exactly you want to cache. After that I’ll spend a little time on Memcached, what it is, why it works, and why it might be a better alternative to creating custom caching routines in your code and relying solely on APC because Memcached can run distributed. Which is especially interesting since hosts like Digital Ocean offer “virtual private networking” (i.e. server interconnects between your “droplets”) at no extra charge.

making_wordpress_fly_3.031

Share
Filed Under: Lengthy, Software, The Web Tagged With: Apache, APC, Caching, Digital Ocean, Droplet, Fast, Linode, Meetup, Memcached, Nginx, Opcode Caching, Performance, Speed, Varnish, WordPress, XCache

Comments

  1. Mohammed Mazhar says:
    July 10, 2014 at 23:57

    Interesting thoughts on the APC being available with php6, but god knows when it would happen, anyways im still confused about using memcache or sticking on with varnish. Varnish is great for small sites but for really large dynamic website with limited RAM varnish might be a bad option.

    Reply

Let us know what YOU think! Cancel reply

*

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Updates by E-Mail

Subscribe to the feed if you wish to receive e-mail updates when I post new stuff.

Business

  • 3am Solutions
  • Animagic
  • Author-izer
  • Fileslinger
  • Ignyter
  • Ignytion
  • Manticore Labs
  • Podcast Asylum

Favorite Tools

  • Altap Salamander
  • Input Director
  • MaxiVista
  • Power Pro
  • Powershell
  • Powershell Plus
  • Synergy
  • Visual Studio
  • Windows Layout Manager
  • XCode

Home Office

  • Home Office 5.0
  • Home Office 6.0
  • Home Office 7.0
  • Home Office Comments
  • Home Office FAQ
  • Home Office Older than 5.0
  • Home Office Thieves
  • Home Office Your Comments
  • Making Of Home Office 6.0
  • Making Of Home Office 7.0

Home Offices (Others)

  • Daniel Heth
  • Dennis Klein
  • Kevin Connolly
  • Mike Dixon
  • Mitch Haile
  • Scott Hanselman

Personal

  • Stefan on Flickr
  • Stefan on Twitter

Recommended

  • Bay Area Consultants Network
  • SF NewTech

Tags

Apple Autodesk Blogging California Copyright Drinks Exposed Exposure Food Free Freeware Fun Graphics Hardware Home Office Images Impersonation Infringement Legal Microsoft Misrepresentation Monitors Multi-Monitor Network Oakley Office 7.0 Beta Office Thief Photographs Photography Pictures Restaurant Review San Francisco Servers Software Software Development Theft Thief Thieves Travel USA Website Windows Wine WordPress

Posts By Date

October 2013
M T W T F S S
« Jul   Dec »
 123456
78910111213
14151617181920
21222324252627
28293031  

Latest Comments

  • Mohammad Saleh on Windows Layout Manager (WiLMa) Version 1.1.0.0 Available
  • tim and sofee on Autodesk, the metastasizing cancer of the 3D world
  • Daniel on Windows Layout Manager (WiLMa) Version 1.1.0.0 Available
  • Tom on Windows Layout Manager (WiLMa) Version 1.1.0.0 Available
  • Jer the TD & Pipeline Guy on Autodesk, the metastasizing cancer of the 3D world
  • Adam Serhan on Autodesk, the metastasizing cancer of the 3D world
  • Skip Lumley on Stefan Didak’s Home Office Comments
  • nir on Windows Layout Manager (WiLMa) Version 1.1.0.0 Available
  • Adam on Windows Layout Manager (WiLMa) Version 1.1.0.0 Available
  • Nnyan on Bye Bye Synergy, Hello Input Director!

Page Top

Contact  ·  Privacy Policy  ·  Copyright © 2023 by Stefan Didak. All Rights Reserved  ·  Admin  ·  Log in