WP Engine

Solutions
AgencyEnterpriseSmall & Medium BusinessMarketer
How WP Engine supports marketers.Benefits for marketers.Features that help you innovate.
Developer
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Explore Our Platform
Insights
Thought LeadershipTopics

Read articles, trends, and insights on these topics from leaders in marketing and technology.

Creative AgilityEnterprise PerformanceActionable IntelligenceEcosystem Integration
Resources

Access ebooks, whitepapers, webinars, and other knowledge from our ecosystem of digital experts.
Visit Resource Center.

Delivering a Slam Dunk Experience on WordPressEbook: The Ultimate Guide to WordPress Plugins15 Common WordPress Mistakes Agencies and their Clients Make
Case Studies
About
Our CompanyOur PlatformLatest News

Access the latest news from inside WP Engine.
Visit the Newsroom.

WP Engine Secures Strategic Growth Investment From Silver LakeWP Engine Unveils First WordPress Digital ExperienceWP Engine Expands Global Presence with New Office in Brisbane
Media Center

Get announcements and resources about WP Engine.

Press Releases
Careers at WP Engine
Pricing
Sales Questions?

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Compare Plans
Need Support?
Support DocumentationBilling HelpSupport

We offer support 24 hours a day, 7 days a week, 365 days a year. Log in to get expert one-on-one help.

Log in for support

Sales Questions

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Sign in
Sign in
Search

Search

Compare Plans
Call Sales +1-512-201-4819
Menu
AgencyEnterpriseSmall & Medium BusinessMarketers
How WP Engine supports marketers.Benefits for marketersFeatures that help you innovate.
Developers
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Our PlatformPricingResource CenterOur CompanySolution CenterThought LeadershipDocumentationCareers

Scaling WordPress For High Traffic: A Developer Guide [Free Download]

Andrew Hickey 3.31.2015

Do you want your WordPress site to scale to accommodate high traffic volumes? This week, we published a brand new developer guide, “Scaling WordPress For High Traffic,” written by WP Engine developer Ryan Oeltjenbruns. In it, we arm you with best practices to get your site ready for massive traffic and major success. Here’s an excerpt:

SCALING WORDPRESS FOR HIGH TRAFFIC

traffic-cars-2Is your site ready for a high traffic event? Say a piece of content goes viral, or gets upvoted on HackerNews; can your site handle it, or will it topple over? Don’t let your site’s success be its downfall. Whether you’re a developer or a website owner, you want your site to stand up to any amount of traffic. In this developer guide, we walk you through steps you can take and tools you can use to fortify your site and ensure it will stay up and stay speedy amid a barrage of visitors. Following these steps will help you boost page load speed and guarantee your site can scale no matter how much traffic comes your way.

Click Here to Download the Free Developer Guide Now

Do you want to perk up your page load speeds and quickly scale your site? If so, it’s time to roll up your sleeves, because we’re about to dive into how to scale WordPress for high traffic.

By breaking down the process of how your site delivers content to your users, we can identify the elements that may be holding your site back, and help you better prepare for peak or spiky traffic.

First, we’ll dive into some of the major performance quirks that sites experience as they gain traction. Then we’ll look at what may be hogging
your server resources.

traffic-highway-2UNDERSTANDING HIGH TRAFFIC

Bottlenecking traffic
Plugins and themes can sometimes perform fine at certain traffic levels, but as visits increase and peak times hit, server resources can be pushed beyond their breaking points.

Think of it like this: there is only so much a server can work through. Eventually the server will have more work to do than it can accomplish, and it will become overloaded.

Serving high traffic
Hightrafficaphobia got you down? Never! The solution to scale is simple: less is more.

Ensure that the request to your site requires
as few server resources and as little effort as possible to render and serve. To do this: serve less, serve more efficiently, or both. Let’s look at both the backend (e.g. MySQL) and the frontend to see where we can start tuning.

high-traffic-chart

KEEP YOUR OPTIONS TABLE UNDER CONTROL

high-traffic-side-smallMySQL stores a lot of data in the Options table: plugins, themes, and the WordPress core all use that data.

Overloading the Options table
In the Options table, the option_value is built to be a LONGTEXT column. In MySQL, this translates to columns that can store up to 4GB of data in a single row, but just because you can store that much data in one column doesn’t mean you 
should.

Autoloaded queries
Autoloaded queries can be the silent page speed killer. If you’re having page load speed issues, try identifying how many queries are being autoloaded.

These queries assume the default table prefix of “wp_”

mysql> SELECT count(*) FROM wp_options WHERE autoload=’yes’;

A good rule of thumb is to shoot for fewer than 200 autoloaded queries on any given page (but having more than 200 isn’t the end of the world). Usually, an excessive amount of autoloaded queries indicates an established blog that still carries weight from plugins and themes of yesteryear. Help your blog chug along by getting rid of those old options!

traffic-avoid-disaster
To prep your site for massive traffic and avoid disaster, download the full Scaling WordPress For High Traffic developer guide now.

More WordPress news from WP Engine

Seeking Funding? It’s All About Who, When, And How Much.SSL Security Now Available On WP Engine Personal Plans

Comments

  1. Sebastian says

    April 3, 2015 at 6:42 am

    Hi guys!

    Thanks to share this articles.
    I think it can help lots of developers and website owners, great job!

    Downloading the book now… 🙂

    Reply
  2. Glamorous Bite says

    April 6, 2015 at 12:00 pm

    Loading down the book too! Thanks for the tip to check autoloaded queries.

    Reply
  3. matteo vasti says

    April 6, 2015 at 3:47 pm

    thanks!

    Reply
  4. koki says

    April 9, 2015 at 9:51 am

    thanks

    Reply
  5. naveen sadarangani says

    May 4, 2015 at 4:23 am

    Looking to migrate our website onto a more robust platform

    Reply
  6. Runnerwave says

    May 5, 2015 at 6:56 am

    Hey guys,
    Some great content out there, thanks!
    Downloading…

    Reply
  7. sani ali says

    May 6, 2015 at 8:50 am

    I’d congratulates you first and foremost in the way you are helping peoples in the world of blogging . Specially peoples like me who interested in doing things by themselves by reading and trying

    Reply
  8. babu says

    May 27, 2015 at 5:20 am

    Do you have ebook for advance Seo ?

    Reply
  9. Lachlan Smith says

    June 7, 2015 at 6:16 pm

    Hi, I attempted to grab the eBook ‘Scaling WordPress For High Traffic developer guide now’ however it was never sent to my email. No download in browser either 🙁 Could I please source a copy?
    Cheers, Lachlan

    Reply
    • Viktor says

      July 4, 2015 at 11:55 pm

      I have the same problem

      Reply
    • Leandro says

      July 6, 2015 at 2:11 pm

      Same problem.

      Reply
      • Andrew Hickey says

        July 6, 2015 at 2:28 pm

        Sorry all. I have reached out to each of you to make sure you receive the ebook.

        Reply
    • Stonedeft says

      August 7, 2015 at 6:15 am

      Same here

      Reply
  10. Ajit bohra says

    June 24, 2015 at 12:55 pm

    Nice info downloading the book

    Reply
  11. AaYaN says

    July 16, 2015 at 7:08 am

    Hey Nice Article … Looking Forward to Download the E-Book & Are there any E-Books On SEO

    Reply
  12. evan says

    July 24, 2015 at 12:45 am

    interesting

    Reply
  13. Armand says

    July 24, 2015 at 1:06 am

    I ran into this exact scenario recently, look forward to reading the article.

    Reply
  14. alfonso valdes says

    July 24, 2015 at 1:06 am

    good

    Reply
  15. Phat Ly says

    July 24, 2015 at 2:56 am

    thanks!

    Reply
  16. John says

    July 24, 2015 at 8:24 am

    Can’t wait to go through the book, should be interesting!

    Reply
  17. Brandon says

    July 29, 2015 at 5:44 pm

    thanks for the ebook learning a lot from it

    Reply
  18. ramesh says

    August 1, 2015 at 12:50 pm

    Hi,
    I am developer and want as soon as possible the guide…it’s really urgent

    Reply
  19. Stonedeft says

    August 7, 2015 at 6:13 am

    I swear I missed something, There is no download link on my email nor anywhere. Where is it?

    Reply
  20. mio says

    August 7, 2015 at 8:21 am

    Thanks for sharing

    Reply
  21. Blog Remaja says

    August 10, 2015 at 5:32 am

    i’ll consider to use wpengine in the future.

    Reply
  22. robert says

    August 18, 2015 at 9:04 am

    thanks

    Reply
  23. Paul says

    September 1, 2015 at 3:36 pm

    hope this leads to a download … eventually … 🙂

    Reply
  24. Franciskalu says

    September 5, 2015 at 3:14 pm

    Pls how do I download it?

    Reply
  25. Perez Hilton says

    September 7, 2015 at 1:16 am

    Thanks for sharing….it is interesting.

    Reply
  26. dammy says

    September 10, 2015 at 7:50 am

    great tips insyd.it is really going to help me in my real world.

    Reply
  27. Siddardha says

    September 11, 2015 at 6:58 am

    Pretty good explanations! Downloaded the e book.

    Reply
  28. Lea Ann says

    September 12, 2015 at 10:29 am

    Thanks so much. Have a great weekend.

    Reply
  29. Mike says

    September 15, 2015 at 9:45 am

    Why don’t you mention Varnish cache? It is without a doubt the fastest way to speed up WordPress and use warm up scripts and hash_always_miss. This way you avoid the slow php backend and always serve fast cached posts, pages, categories etc.

    I use these WordPress Varnish scripts (plugin is in development) so my site is always fast on a $5 a month VPS.

    MySQL tweaks are great but there is no beating avoiding MySQL and PHP (use memcached or redis for caching objects and db queries).

    Reply
  30. Lou says

    December 9, 2015 at 4:34 am

    Im having issues with the DL.

    Reply
  31. Anwer AR says

    January 13, 2016 at 10:11 am

    Wow.. Fantastic E-book. i was really in search of a guide to Optimization. going to download it.

    Thank You very much

    Reply
  32. Muhammad Imran says

    January 20, 2016 at 2:24 am

    Thanks for sharing this detailed article.

    Reply
  33. Val says

    January 30, 2016 at 4:48 pm

    I really can’t believe that I gave you my phone number for this ebook. It’s not worth it.

    Reply
  34. bloggingbook says

    March 18, 2017 at 12:01 pm

    Thanks for the guide.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Subscribe

    Subscribe to our blog to get great tips for your WordPress site.

  • Favorite Tweets by @wpengine
  • Sign In

    Solutions

    • Agency
    • Enterprise
    • SMB
    • Marketer
    • Developer

    Insights

    • Blog
    • Torque
    • Velocitize

    About

    • Our Company
    • Leadership Team
    • Our Platform
    • Careers
    • Affiliates
    • Contact
    • Legal
    • Newsroom
    • Privacy Policy

    Resources

    • Resource Center
    • Documentation
    • Solution Center
    • Find an Agency

    WP Engine

    504 Lavaca Street, Suite 1000
    Austin, TX 78701

    Sales

    +1-512-201-4819
    [email protected]
    7am–7pm CST

    Billing

    [email protected]

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Instagram
    • RSS
    © 2013—2025 WPEngine, Inc. All rights reserved.
    WP ENGINE®, VELOCITIZE®, TORQUE®, EVERCACHE®, and the cog logo service marks are owned by WPEngine, Inc.