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:
How to Enable Persistent Object Cache on WordPress
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.
Open the Object tab.
Turn on the Object Cache.
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.
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.
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.
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.
In the Plugins Search Bar enter APCu Manager. The plugin will be listed on the search results.
Click the Install Now button.
Click the Activate button.
The plugin will appear on the sidebar with the name PerfOps One.
Click on the Control Center to set up APCu Manager settings.
On the APCu Manager click Settings button.
Tick the Object Cache, Garbage collector, Analytics, Quick Actions, and Resources (Use Public CDN to serve stylesheets and scripts).
Click the Save Changes.
It will show you a message, “Plugin settings have been saved. APCu Manager is now the WordPress object cache handler“.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
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.
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.
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.
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.
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.
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.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.