Object cache (persistent) for everyone @ WordPress Help

Object cache (persistent) for everyone @ WordPress Help


Did you see in your WordPress site health tool that you don’t have the persistent object cache turned on and that this could make your website performance more efficient? Well that’s right, you should activate it.

Why don’t I have object cache?

wordpress inactive object cache site integrity

You actually have object caching, WordPress has been integrating it for a long time, but it is not persistentit’s only active on every request, so it doesn’t contribute significantly to ease the resource load on your website.

To have an active persistent object cache It is necessary that your server, your hosting company, has a persistent object cache systemAnd how memcached.

For example, if your website is hosted on SiteGround, you can (and should) activate it in the speed section of your panel.

activate siteground memcached site tools

Subsequently, from the SG Optimizer plug-in, in the cache section, the service must also be activated. Only complete these 2 steps will be available.

turn on the memcached optimizer sg

If my hosting doesn’t have Memcached, can I install a persistent object cache?

Luckily you can, and that’s what I want to tell you about today, because there is a PHP class called PCL Memcached that can be installed and activated on any server, and one of two:

  • Start the Memcached server, if it exists.
  • Enable file based memcached.

Thanks to this, you will be able to activate a persistent object cache for your website, regardless of the caching services offered by your hosting company.

For everyone, precisely, because with this free plugin created by my great friend and best computer scientist Ferdinand bridgeyou can have persistent object caching on your WordPress, whether your hosting offers it or not.

The best thing is that You don’t need advanced knowledge of caching, servers or anything else to have a persistent object cache thanks to the pluginyou just need to install the plugin and activate it.

Persistent object cache for everyone if your hosting has Memcached

The plugin, as I told you, enable persistent object caching, if the service is available memcached in your hosting as if it weren’t. If it exists, simply use the service and it will show you a message on the plugins page indicating its IP.

object caching for anyone using memcached

Also, the plugin creates a dependent or drop-in plugin, object-cache.php in the folder /wp-content/ of your installation, with the code needed to activate the persistent object cache.

Persistent object cache for everyone if your hosting does NOT have Memcached

What your hosting does not have the service memcached or is it not active? There is no problem, in this case the plugin, not detecting the activated service, what it does is generate persistent disk cache files.

To do this, in addition to the file object-cache.php with the code needed to run it, in the folder /wp-content/cache/object/ It will store disk copies of queries made on your website, to serve them persistently to following visitors.

caches persistent objects on disk

Warning: You have to keep an eye on the available disk space because on a website with a lot of content and traffic, and especially in online stores, the amount of stored persistent object cache files can occupy several gig and become a problem if you don’t have enough contracted disk space. This advice is equally valid for any cache stored on disk, such as full page cache.

Does the persistent object cache work?

site integrity wordpress active object cache

Of course, I’ve installed it on many websites for clients that I maintain that don’t have any memcached in your hosting and the performance of your sites improves dramatically.

Also, the WordPress site health tool detects this the persistent object cache is activeit doesn’t matter if it’s with memcached or with disk storage.

Even on websites hosted by SiteGround or other hosting they have memcached, depending on which situations and types of web I have verified that the service works better if you activate it with this plugin than with the hosting plugin.

So now you know, save Object Cache 4 All to your favorite plugins list. And if you’ve already used it, tell us, below in the comments, how it went.

Did you like this article? You have no idea what you are missing a YouTube!





Source link

Related Posts

Leave a Reply

Open chat
Scan the code
Hello 👋
Can we help you?