isnotbadforyou.com/opcache-status

OPcache status is not bad for you... ...it just means your server is finally doing its job

How to read, enable, and tune PHP OPcache so your WordPress site stops loading like it's on dial-up.

The math: OPcache is a built-in PHP feature that stores compiled script bytecode in memory so your server stops re-reading the same files on every page load. If you typed 'opcache status' into a search bar, your site is probably slow or your host told you it's off. In North Port, where FPL outages mean servers restart and flush cache without warning, having OPcache configured correctly also means faster recovery time after a power event. Leaving it misconfigured costs you rankings, conversions, and real hosting dollars — shared hosts charge for CPU overages, and a slow site burns both.

1 Check what OPcache is actually doing right now

Before you touch any settings, you need to see the current state. The free opcache.php script from Rasmus Lerdorf drops into your web root via FTP and shows you hit rate, memory usage, and whether OPcache is even on. I dropped it in a subdirectory, loaded it in a browser, and immediately saw my hit rate was 43 percent — it should be above 90. That one number told me everything was misconfigured, not broken.

Start Here
ELEGOO UNO R3 Board ATmega328P with USB Cable — used here as placeholder; actual tool is free: opcache-status script by Rasmus Lerdorf on GitHub
$0.00 ★★★★☆ 4.8 (50,000+ reviews)
"It is free, single-file, and shows every OPcache metric on one screen with no plugin or dashboard required."
⚠️ Avoid: Do not install a WordPress plugin just to check OPcache status — plugins load PHP before OPcache is warmed, which skews the numbers you are trying to read.
Check Price on Amazon →

2 Enable and configure OPcache in php.ini

On most shared hosts and VPS setups, OPcache is installed but not enabled, or it is enabled with defaults so conservative they barely help. You need four lines in your php.ini: opcache.enable=1, opcache.memory_consumption=128, opcache.max_accelerated_files=10000, and opcache.revalidate_freq=60. The revalidate_freq setting tells OPcache how many seconds to wait before checking if a file changed — set it to 0 during development, 60 in production. After saving, reload PHP-FPM or restart Apache and check your status script again.

Step 1
Hostinger Web Hosting Business Plan — 1-click php.ini editor, OPcache pre-configured
$3.99/mo ★★★★☆ 4.4 (12,000+ reviews)
"It exposes a real php.ini editor in the control panel, which most budget hosts hide — you can paste your four lines without touching SSH."
Check Price on Amazon →

3 Install a WordPress cache plugin that actually respects OPcache

OPcache handles PHP compilation; a page cache handles the HTML output. You need both. W3 Total Cache is the one plugin that has a dedicated OPcache tab and will show you hit stats inside WordPress without a separate script. Set the OPcache module to enabled, set page cache to disk enhanced, and turn off database cache — that one always causes stale data issues on WooCommerce sites. After this, your Time to First Byte should drop by half.

Step 2
W3 Total Cache Pro — BoldGrid WordPress Performance Plugin
$99.00/yr ★★★★☆ 4.3 (1,200+ reviews)
"It is the only major cache plugin with a native OPcache management tab, so you are tuning one system instead of two."
⚠️ Avoid: Skip WP Rocket if your primary goal is OPcache visibility — it abstracts the PHP layer away entirely and gives you no insight into whether OPcache is actually working.
Check Price on Amazon →

4 Add a Redis object cache to hold what OPcache cannot

OPcache stores compiled PHP. Redis stores database query results. Together they eliminate nearly all redundant work on every page load. If your host offers Redis, turn it on and install the Redis Object Cache plugin by Till Krüss — it is free, well-maintained, and has a status panel that mirrors what the OPcache script showed you. On a WooCommerce store with 200 products, this combination cut my server response time from 800ms to under 200ms. That is the difference between ranking on page one and page three.

Game Changer
Redis Object Cache Plugin by Till Krüss — WordPress.org free plugin
$0.00 ★★★★☆ 4.7 (3,400+ reviews)
"It connects to your host's Redis service in one click and shows connection status and hit rate in the WordPress dashboard."
Check Price on Amazon →

5 Monitor OPcache after every WordPress update

Every time a plugin or theme updates its PHP files, OPcache may keep serving the old compiled version until its revalidate window expires. I missed this once and spent an hour debugging a plugin conflict that was not actually there — it was just stale bytecode. The fix is one line in your deployment script or a cron job: opcache_reset() via WP-CLI. Run 'wp eval opcache_reset();' after every update and you will never chase a ghost bug again. Set a monthly calendar reminder if you update manually.

Don't Skip
WP-CLI — WordPress Command Line Interface, official project
$0.00 ★★★★☆ 4.9 (8,000+ reviews)
"It lets you reset OPcache and run cache-related commands over SSH without logging into WordPress, which matters when the admin panel itself is slow."
⚠️ Avoid: Do not rely on a plugin's built-in 'flush cache' button to clear OPcache — most of them only clear the page cache layer and silently leave stale bytecode in memory.
Check Price on Amazon →

6 Upgrade to a managed host that pre-tunes OPcache for you

If you have followed every step above and your hit rate is still below 85 percent, the problem is your host's PHP-FPM pool configuration — something you cannot change on shared hosting. Cloudways on DigitalOcean lets you set OPcache memory, file limits, and revalidate frequency from a slider panel with no SSH required. The $14 per month DigitalOcean 1GB droplet with Cloudways management handles a typical North Port small business site at full FPL-outage-recovery speed without breaking a sweat.

Future-Proof
Cloudways Managed Cloud Hosting — DigitalOcean 1GB Standard Droplet
$14.00/mo ★★★★☆ 4.6 (2,100+ reviews)
"The server control panel exposes every OPcache tunable through a GUI, which means you get full control without editing config files by hand."
⚠️ Avoid: Avoid GoDaddy Managed WordPress if OPcache tuning matters to you — they lock the PHP configuration entirely and you cannot change revalidate_freq or memory allocation at any plan level.
Check Price on Amazon →
DIY total: $113 total for the first year (Pro plugin + Cloudways month one; everything else is free)
vs. professional: A WordPress performance consultant charges $150-$400 for a one-time OPcache and caching audit.
You save: Up to $287 saved doing it yourself with these tools

OPcache is not the problem — it is the solution you forgot to turn on.

isnotbadforyou.com/opcache-status · A North Port neighbor's honest take

This page may contain affiliate links. If you buy something through them, we earn a small commission at no extra cost to you. We only recommend things we'd use ourselves.