WordPress

WordPress object cache with Redis: a faster admin, cart and checkout (2027 guide)

3 min read By Cloud Ninza

A page cache makes visitors fast. An object cache makes everything else fast: wp-admin, logged-in users, cart and checkout. Here is how to add one with Redis.

In short WordPress repeats the same database queries on every request — options, menus, users, product data. A persistent object cache stores those results in Redis so later requests read them from memory. It speeds up the parts a page cache cannot serve: wp-admin, logged-in users, WooCommerce cart, checkout and account pages. On Cloud Ninza Growth, Business and Pro WordPress plans, turn on Redis in the dashboard, install the free Redis Object Cache plugin, paste four lines into wp-config.php and press Enable.

Page cache and object cache are different jobs

WordPress Site Health even warns “You should use a persistent object cache” on sites that would benefit. Redis is the usual answer.

Page cacheObject cache (Redis)
StoresFinished HTML pagesResults of database queries and computations
HelpsAnonymous visitors on public pagesEvery request, including wp-admin, logged-in users, cart and checkout
On Cloud NinzaNinza Speed’s server page cacheRedis on Growth, Business and Pro plans
Use both?YesYes — they complement each other

Why WordPress gets slow without one

Every WordPress request loads options, the active theme’s settings, menus, widgets, the current user and their permissions, then the content. Plugins add their own queries. Without a persistent object cache, WordPress keeps these answers only for the length of one request, then forgets them, so the next request asks the database again.

On a WooCommerce store this adds up fast: product prices, stock, variations, tax rules, shipping zones and the cart are read again and again. A page cache cannot help with cart, checkout and account pages, because they are different for every customer. An object cache can.

Set it up on Cloud Ninza, step by step

The PHP Redis extension is already installed on every PHP version on Cloud Ninza, so the plugin uses the fast native client.

  • Dashboard → Databases → Redis → choose the WordPress project → Turn Redis on.
  • In wp-admin: Plugins → Add New → search “Redis Object Cache” → Install Now → Activate.
  • Copy the lines shown on the Redis page into wp-config.php, above “That’s all, stop editing”: WP_REDIS_HOST, WP_REDIS_PORT, WP_REDIS_PASSWORD and WP_REDIS_PREFIX.
  • Settings → Redis → Enable Object Cache. The status should read Connected.
  • Open Tools → Site Health: the persistent object cache recommendation disappears.

Measure the difference

Before switching it on, note the load time of a few slow pages: the wp-admin dashboard, the WooCommerce orders list, a product edit screen, the cart with items in it. Measure again after a few minutes of normal use (the cache fills as pages are visited). Query Monitor, a free plugin, shows the number of database queries per page — expect it to fall sharply on repeat views.

The Redis page in the Cloud Ninza dashboard shows memory used, keys and the hit rate. A healthy object cache has a high hit rate after warm-up; many evictions mean the plan’s Redis is full and an upgrade would help.

Use it with Ninza Speed

Ninza Speed’s server page cache answers anonymous visitors without starting WordPress at all. Redis makes every request that does start WordPress cheaper. Together they cover both: fast public pages, and a fast admin, cart and checkout. Both are managed from wp-admin, and neither conflicts with the other.

Troubleshooting

  • Status “Not connected”: check that Redis is on in the dashboard and that the port and password in wp-config.php match the Redis page.
  • Changes not showing after editing a setting: press Flush Cache in Settings → Redis (the plugin clears relevant keys automatically in normal use).
  • Several WordPress sites on one plan: give each a different WP_REDIS_PREFIX (for example its domain) so their keys never mix.
  • Moved to a Starter plan: Redis is not included there; deactivate the plugin’s object cache first, then the plugin.

Key takeaways

The short version, for anyone skimming:

  • A page cache serves visitors; an object cache speeds up everything else in WordPress.
  • Redis object caching helps wp-admin, logged-in users, cart, checkout and account pages most.
  • On Cloud Ninza: turn Redis on, install Redis Object Cache, paste four lines, Enable.
  • Use it together with Ninza Speed’s page cache.
  • Included with WordPress Growth (64 MB), Business (128 MB) and Pro (256 MB) plans.
Host it with us

WordPress Hosting from ₹1,788/year

WordPress on India-hosted cloud servers, installed for you — the latest release or the version your site needs. Latest WordPress or your chosen version · PHP 8.3, 8.4 or 8.5 · Free SSL certificate.

Ready when you are

Hosting from ₹149 a month on servers in India

WordPress, static HTML, PHP, Node.js, Python and Java plans with free SSL and your choice of version. Create your account, pick a plan and pay by UPI, card or netbanking; your hosting is created automatically and you get your login by email, usually within minutes.

Questions

Questions on this topic

What is a WordPress object cache?

It keeps the results of WordPress’s database queries in memory between requests, so repeated questions are answered without the database.

Is Redis better than a page cache?

They do different jobs. A page cache serves finished pages to visitors; Redis speeds up the requests that still run WordPress. Use both.

Which plugin should I use?

The free Redis Object Cache plugin from WordPress.org is the most widely used and works with Cloud Ninza’s Redis.

Does it work with WooCommerce?

Yes, and stores benefit the most: cart, checkout, account and admin pages get faster.

Do I need to change my theme?

No. The object cache works underneath WordPress; themes and plugins use it automatically.

How much memory does a WordPress object cache need?

Most sites fit comfortably in 64–128 MB. Large stores with many products may prefer Pro’s 256 MB.

Is the PHP Redis extension available?

Yes, phpredis is installed on every PHP version on Cloud Ninza.

Which plans include Redis?

WordPress Growth, Business and Pro. Starter plans do not include it.