Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio
Wordpress

WordPress: Fix a Bloated Autoload Option Slowing Every Page Load

- 26.11.26 - ErcanOPAK

📝 WordPress: Fix a Bloated Autoload Option Slowing Every Page Load

Every row in wp_options marked autoload = ‘yes’ gets pulled into a single query (the alloptions cache) that WordPress runs on literally every page load, whether that specific page actually needs the option or not – it’s meant for small, universally-needed settings like the site URL or active plugins list. A plugin that stores a large serialized array with autoload left at its default ‘yes’ (an oversized transient it forgot to expire, a settings blob that keeps growing) adds real, fixed overhead to that one query on every single request, and because the slowdown is spread evenly across the whole site rather than concentrated in one slow query somewhere, it rarely shows up in an obvious way.

🔎 The Problem

SELECT option_name, LENGTH(option_value) AS size_bytes
FROM wp_options
WHERE autoload = 'yes'
ORDER BY size_bytes DESC
LIMIT 10;

-- option_name                          size_bytes
-- _transient_old_plugin_report_cache    4,812,003   <- loaded on EVERY page
-- some_plugin_settings_blob                891,220   <- same

✅ The Fix

  • Run the query above (or use the free Query Monitor plugin’s database panel) right after noticing a site-wide slowdown, to find the actual oversized autoloaded rows instead of guessing at a cause.
  • Set autoload = ‘no’ directly on any option that doesn’t need to be present on every single page view – most transients already default to ‘no’, so a large autoloaded transient is usually a sign of a plugin bug worth reporting, not a setting to leave alone.
  • When fully removing a plugin, use its own ‘Delete’ action (not just Deactivate) so it cleans up its own options table rows, and periodically audit wp_options for rows belonging to plugins that are no longer even installed.

🚨 Why This Is Dangerous

Because this slowdown touches every page equally, it tends to get misdiagnosed as ‘the hosting is too slow’ or ‘we need more caching’ – spending money and effort on infrastructure upgrades when the actual fix is removing a handful of oversized rows from one database table.

Autoload isn’t a convenience setting WordPress ignores – it’s a promise that an option is small and needed everywhere, and an unexamined ‘yes’ is a promise most plugins never actually checked.

— WordPress Admin

Related posts:

WordPress: Fix Custom Post Type Archives Returning a 404 Because has_archive Was Never Set to True

WordPress: Fix Custom Post Type Archives Returning a 404 Because has_archive Was Never Set to True

WordPress: Use Child Themes for Safe Customization

WordPress: Use Child Themes for Safe Customization

How to solve WordPress Briefly unavailable for scheduled maintenance. problem

How to solve WordPress "Briefly unavailable for scheduled maintenance." problem

Views: 8
Found this useful? Share it
XLinkedInWhatsApp

Post navigation

The AI Prompt That Finds Which Commit Actually Caused a Regression
SQL Server: Fix a Table Variable Breaking a Parallel Query Plan

Leave a Reply Cancel reply

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

Most Read

  1. 01How to make theater mode the default for Youtube 1,079 views
  2. 02How to add default value for Entity Framework migrations for DateTime and Bool 997 views
  3. 03Get the User Name and Domain Name from an Email Address in SQL 996 views
  4. 04Get the First and Last Word from a String or Sentence in SQL 873 views
  5. 05How to select distinct rows in a datatable in C# 868 views
  6. 06How to enable, disable and check if Service Broker is enabled on a database in SQL Server 671 views
  7. 07Add Constraint to SQL Table to ensure email contains @ 629 views
  8. 08Average of all values in a column that are not zero in SQL 584 views
  9. 09How to use Map Mode for Vertical Scroll Mode in Visual Studio 561 views
Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
Back to top
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com