How to Enable Persistent Object Cache on WordPress (2024)

Is your WordPress Site Health status showing you the recommendation, “You should use a persistent object cache“? and you want to fix this issue? You’re in the right place.

In this tutorial, I will guide you step-by-step on How to enable persistent object cache on WordPress and How to install APCu Manager plugin. APCu is a PHP extension used to improve the speed/performance of a website.

APCu Manager offers a persistent object cache backend to WordPress. It is a complete APCu management and analytics reporting tool that enables you to monitor and optimize APCu operations on your WordPress website.

Below is the complete description about using the “Persistent Object Cache” on WordPress Site Health status. It is also providing information about which object caching services does your web host support like here it is suggesting APCu object caching service.

A persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content and settings much more quickly. Your hosting provider can tell you if a persistent object cache can be enabled on your site. Your host appears to support the following object caching services: APCu.

Following topics will be covered in this tutorial:

  1. How to Enable Persistent Object Cache on WordPress
  2. How to Set Up APCu Manager on WordPress

RELATED

  • HowTo Pass Core Web Vitals Test for Monetized WordPress Blog
  • How to Remove Lazy Loading on Featured Image in WordPress

01. How to Enable Persistent Object Cache on WordPress

The Object Cache on WordPress is enabled via Caching plugins. Here, I am guiding you on how to enable Object Cache on LiteSpeed Cache. If you are using W3 Total Cache, WP Rocket, WP Super Cache, etc, read their documentation to enable Object Cache.

  • Go to LiteSpeed Cache from the Sidebar.
  • Click Cache.
How to Enable Persistent Object Cache on WordPress (1)
  • Open the Object tab.
  • Turn on the Object Cache.
How to Enable Persistent Object Cache on WordPress (2)

Now you won’t see “Persistent Object Cache” recommendation on your WordPress Site Health status. For confirmation check the Site Health status again.

On the Object Cache Settings, you can also see two object cache extensions i.e. Memcached & Redis. Though you can enable them from your cPanel account, but they don’t work (connect) on Shared Hosting. They only work on VPS Hosting and Dedicated Server Hosting.

These articles may help you to connect & set up Redis Object Cache on WordPress, if it is supported by your web host:

How to Enable Persistent Object Cache on WordPress (3)

02. How to Set Up APCu Manager on WordPress

In this section, I will guide you step-by-step on how to set up APCu Manger on WordPress.

01. Enable APCu PHP Extension on cPanel

First of all make sure that your APCu PHP extension is enabled on your cPanel account.

  • Login to your cPanel account and go to SOFTWARE section.
  • Click the Select PHP Version.
How to Enable Persistent Object Cache on WordPress (4)
  • On the Extensions tab, go to PHP extensions start with A. It will help you to quickly find the APCu PHP extension.
  • Tick on the apcu to enable. If it is already enabled, don’t do anything.
How to Enable Persistent Object Cache on WordPress (5)

02. Install and Set Up APCu Manager Plugin

The APCu PHP extension is enabled, now I will install and set up APCu Manager plugin.

  • Go to Plugins from the Sidebar.
  • Click Add New.
How to Enable Persistent Object Cache on WordPress (6)
  • In the Plugins Search Bar enter APCu Manager. The plugin will be listed on the search results.
  • Click the Install Now button.
How to Enable Persistent Object Cache on WordPress (7)
  • Click the Activate button.
How to Enable Persistent Object Cache on WordPress (8)
  • The plugin will appear on the sidebar with the name PerfOps One.
  • Click on the Control Center to set up APCu Manager settings.
How to Enable Persistent Object Cache on WordPress (9)
  • On the APCu Manager click Settings button.
How to Enable Persistent Object Cache on WordPress (10)
  • Tick the Object Cache, Garbage collector, Analytics, Quick Actions, and Resources (Use Public CDN to serve stylesheets and scripts).
  • Click the Save Changes.
How to Enable Persistent Object Cache on WordPress (11)
  • It will show you a message, “Plugin settings have been saved. APCu Manager is now the WordPress object cache handler“.
How to Enable Persistent Object Cache on WordPress (12)
  • To view the Analytics of APCu i.e. Key performance indicators and activity metrics for your website, go to PerfOps One and click Analytics.
  • Click APCu.
How to Enable Persistent Object Cache on WordPress (13)
  • This is the APCu Analytics page. You can view Hit Ratio, Free Memory, Objects, Keys Saturation, Fragmentation, Availability, Memory Usage, and Metrics Variations.
  • A Hit Ratio is a calculation of cache hits. It means a measurement of how many content requests APCu Object Cache is able to deliver successfully, compared to how many requests it receives. The cache hit ratio should be high.
How to Enable Persistent Object Cache on WordPress (14)

Conclusion

So it was all about enabling persistent object cache and setting up APCu Manager on your WordPress website. Once you’re are done, measure how much impact it has added to the performance of your website.

If you like this post then don’t forget to share with the other people. Share your feedback in the comments section below.

Also Read

  • How to Enable Optional Module Imagick on cPanel | WordPress
  • 403 Forbidden Access to this Resource on the Server is Denied!
  • How To Compress Content Using Optimize Website In cPanel
  • Fixed: Updating failed. The response is not a valid JSON response

How to Enable Persistent Object Cache on WordPress (15)

Meer Basit

Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, & eCommerce. In general, he likes traveling, gardening, watching movies, is a passionate cricketer, creative writer, and a GSD lover.

How to Enable Persistent Object Cache on WordPress (2024)

FAQs

How to Enable Persistent Object Cache on WordPress? ›

To enable object caching via Redis on your site, install the Redis Object Cache plugin and open the Settings tab on your WordPress dashboard. Go to Redis → Enable Object Cache.

Should I enable object cache in WordPress? ›

But another one you'll want to add to the mix is object caching. Object caching involves storing database queries and, when enabled on your WordPress site, it can help speed up PHP execution times, reduce the load on your database, and deliver content to your visitors faster.

How to enable caching on WordPress? ›

Go to Site Tools > Speed > Caching > click the toggle button in the Cache column for the desired caching level. It is recommended to use all three levels for production websites.

How do I enable dynamic caching in WP Super cache? ›

To enable this option, you can head over to the 'Advanced' section and click the checkbox for 'Enable dynamic caching. ' Make sure to save your changes when you're finished. WP Super Cache also lets you set up the expiry time and frequency for deleting cached pages from your server.

How to enable persistent object cache on cPanel? ›

To adjust settings for Redis/Memcached, follow these steps:
  1. Begin by logging on to cPanel.
  2. Find the icon Object Cache under Advanced .
  3. Now, select if you want to adjust settings for Redis or Memcached using the tabs near the top of the page. ...
  4. Under Redis status you'll see whether or not Redis is running on your account.

How do I add a persistent object cache to WordPress? ›

To enable object caching via Redis on your site, install the Redis Object Cache plugin and open the Settings tab on your WordPress dashboard. Go to Redis → Enable Object Cache.

Which cache is best for WordPress? ›

  1. WP Rocket. 🥇Best Cache Plugin Overall. ...
  2. WP-Optimize. 🥈Best Free Caching Plugin. ...
  3. W3 Total Cache. 🥉Best Caching Plugin For Advanced Users. ...
  4. LiteSpeed Cache. ...
  5. WP Super Cache. ...
  6. WP Fastest Cache. ...
  7. Hummingbird. ...
  8. Autoptimize.

How do I change the caching settings in WordPress? ›

WordPress caching options
  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site. ...
  3. Click the Website tab.
  4. Scroll down to the WordPress section.
  5. To the right of Page Caching, enable the toggle.
Mar 12, 2024

How to enable cache in WordPress without plugins? ›

Increase Website Speed: Leverage Browser Caching in WordPress without Plugin Using htaccess File. To increase website speed, leveraging browser caching in WordPress without a plugin is possible using htaccess file. This can be done by modifying the . htaccess file in the root directory of the WordPress installation.

Does WordPress have built-in caching? ›

WordPress users of shared servers can typically cache data on the server hard disk, but those using VPS, or Virtual Private Server, hosting or dedicated hosting may also cache data in the server's RAM.

What is dynamic caching WordPress? ›

Dynamic caching stores all the HTML output of your web application. For example, a WordPress-generated page consists of a dynamically generated HTML part that is cached by the Dynamic Cache and a number of static resources – JS, CSS, images, and other media.

Should I use WP Super cache? ›

It increases your response time and improves your overall page speed. WP Super Cache does not turn on compression by default. You will need to enable it by visiting the Advanced tab under plugin settings. Simply check the option that says 'Compress pages so they're served more quickly to visitors'.

What is the difference between WP total cache and super cache? ›

WP Super Cache generates static HTML files of pages, while W3 Total Cache offers several caching methods such as page, database, object, and browser caching. WP Super Cache is simpler and suitable for moderate traffic sites, while W3 Total Cache is more comprehensive and better for complex sites with high traffic.

What is persistence cache? ›

Persistence cache layer caches selected objects in-memory for a short time. It avoids loading repeatedly the same data from e.g. a remote Redis instance, which can take up to 4-5ms per call due to the network latency and Redis instance load.

How do I enable Redis object cache in WordPress? ›

Method #2: Using the W3TC Plugin
  1. Go to the WordPress Admin → Performance.
  2. Click General Settings → Object Cache.
  3. Mark the checkbox Enable to activate the option.
  4. Select Redis from the drop-down menu.
  5. Click Save Settings & Purge Caches.
Jun 6, 2024

How do I enable WP cache? ›

To enable the cache, you can use the WP_CACHE constant in your wp-config. php file. define( 'WP_CACHE', true ); There are also several caching plugins available, such as W3 Total Cache and WP Super Cache, that can further optimize your site's performance.

What is object cache for WordPress? ›

A WordPress object cache makes the cached content accessible and retrievable using a key, a unique identifier to indicate a specific entry in the database. This tool is non-persistent, caching objects for a single page load.

Is it OK to clear cache on WordPress? ›

Manually clearing the cache can generate new copies of your site's files and show the updated version to users. You'll likely want to clear your WordPress cache regularly. This ensures that visitors will always see the newest content, such as comments and recent posts, when accessing your site.

Should I enable or disable write caching? ›

Summary. With some third-party programs, disk write caching has to be turned on or off. Additionally, turning disk write caching on may increase operating system performance; however, it may also result in the loss of information if a power failure, equipment failure, or software failure occurs.

What is the difference between page cache and object cache? ›

Page cache – Stores the previously generated code necessary to load a page. Object caching – Stores the results of queries to your site's database. Similar to regular page requests, queries can stack up and cause slowness on sites if too many are run at a time.

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 5413

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.