What is Object Caching?

An object cache stores the results of frequent database queries in a way that makes them easy to retrieve and eliminates the need for repeated access to the database. Simply say, it stores database results so that the system doesn’t have to process the same queries over and over again. This is particularly useful for database heavy applications like WordPress.  Object caching greatly reduces the time it takes to retrieve query results.

Some queries are time-consuming, and other queries are repeated frequently. Both of these scenarios can be improved by storing the query results in object cache.

Unlike with Apache, you can configure the LiteSpeed web server to enable object caching via the LiteSpeed caching plugin for WordPress. Since Kingscel uses LiteSpeed, this functionality is available to everyone by default.

LiteSpeed is a “drop-in” replacement for Apache and comes with a whole lot of additional features. It’s proven to be fast, stable, and a good alternative to Apache.

Types of Object Caching(Most popular)

Over the years, the most popular object caching tools are Memcached and Redis. Any of the two is good depending on what you prefer.

  1. Memcached: is a general-purpose distributed memory-caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source must be read.
  2. Redis: is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes.

You can decide to use any of the above two. Our servers are well configured for any of the above options.

How to Enable Object Caching(Redis or Memcached)

  1. login to your kingscel Cpanel account and navigate to “Select PHP version” as shown below:

object caching kingscel

2. Select and check “Memcached” or “Redis” or even both.


Object Caching

3. Login to your WordPress Admin dashboard, Navigate or install LiteSpeed cache.

Once you have activated the plugin, go to its settings and turn on the “Advanced Options”, click

on the “Advance ” tab and turn on memcached or redis as indicated in the image below

Object Caching


Note: Do make sure Memcached or Redis is enabled and passed connection.

Thats it!!. Enjoy faster load speed