Object Cache
The Redis object cache add-on keeps database results in memory so WordPress answers faster. It costs $100 a month per site, and we check it works.
The object cache keeps the results of database queries in memory, so WordPress answers repeat requests faster. It suits busy sites with many logged-in users and large shops. It costs $100 a month for each site, and live gets 2 GB of memory. One charge covers every environment of the site: live, staging, and previews. A staging or preview environment gets up to half of its own memory, so the cache never starves the site: 1 GB in a 2 GB environment. A test site gets it free.
How do I turn it on or off?
- Open the site and choose Add-ons.
- On the Redis Object Cache card, choose Enable or Disable.
The card shows the price, or a blue check and Enabled and verified when it is on. The change is a job you can follow in the job drawer. Enable asks you to confirm the price first, then buys Redis and turns the cache on in every environment of the site, with one charge for the rest of the month and then every month. A test site runs it free. Disable always works. Owners, admins, and billing users can change it. Everyone else sees the card without the button. Caching, under Redis, shows the same state. See Add-ons for billing.
What happens on the site?
Turning the cache on starts a Redis server for each environment inside its own container, with a memory cap of 2 GB on live, and up to half of the environment's memory on a staging or preview environment (1 GB in a 2 GB environment), so a full cache always leaves room for PHP and the database. It listens on a private socket only your site can open. The server is Valkey 9.1, an open source Redis compatible server, so the Redis Object Cache plugin, phpredis, and any Redis client work unchanged. WP Waterfall loads the drop-in from outside your code, so it works on live even though live code is read only. If your site ships its own wp-content/object-cache.php, WP Waterfall leaves it and points it at the same Redis. Turning the cache off empties it and removes its files. Your pages and content do not change either way.
Every key carries the database, environment name, and table prefix, plus the blog ID on a multisite network, so no two sites or environments read each other's keys.
How does WP Waterfall check that WordPress uses it?
The job does not succeed until WordPress proves it. The server sets a key through WordPress with your real wp-config.php, reads it back from Redis, and repeats the check through the same PHP-FPM pool that serves visitors.
- Pass: the Add-ons card says Enabled and verified with the round trip time.
- Fail: the job fails with the reason, such as "the PHP Redis extension is not loaded". The server turns the cache off again and nothing is billed. Choose Enable again after you fix the cause, or message Nami from the chat button with the job.
On Caching, under Redis, you see the verified state, memory used and cap, number of keys, and hit rate. Check again reruns the check. If the tab says Not verified, choose Turn on again.
What about new environments?
A staging environment, preview, or live environment created from an environment with the cache gets its own Redis with the same cap, and the same check runs. If the cache cannot start there, the environment is still created and the job says why. Promote, restore, and backups keep each environment's cache.
Quick answers
Does the cache change my pages? No. It changes how WordPress reads the database.
Did the size change? Yes. The cache is 2 GB on live for every site, at the same $100 a month. A site that already had the cache moves up on its own, at no extra charge, and its cache starts empty once when it does.
Why does the card still show the price after I chose Enable? The change is a job. Wait for it to finish. If it fails, the card stays as it was and the job shows the reason.
For assistants and scripts
GET /v1/sites/{id}/object-cachereturns the live state. Addverify=trueto run the check again.POST /v1/sites/{id}/add-ons/{addon_id}/enableand.../disable, withobject_cacheas the add-on, run the job.- The MCP tools are
list_site_add_ons(showsverified),get_object_cache,enable_add_on, anddisable_add_on.enable_add_onbuys Redis at 2 GB for $100 a month (after your confirmation, with a saved card and thebilling:writescope) and turns it on;disable_add_onturns it off and ends the charge.
Related
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.