Configuring the WordPress cache

Last Revised: October 2, 2021

Again, what is probably a general and very useful recommendation, such as turning on WordPress caches, becomes an element that helps increase the security of your site. Because when we talk about security we are not only talking about hacks, but about possible DDoS attacks that what they do is leave your site inaccessible and that your users can not visit it.

WordPress has several types of cache levels, but regardless of which one we use, the first thing is to activate it in the configuration file [wp-config.php]:

define('WP_CACHE', true);

From this moment on, the system already manages the cache automatically. Maybe it’s not the optimal configuration, but it works. So the next thing is to manage this cache and for this, obviously, we will use any of the cache plugins that exist. A simple and functional (as well as complete) one is the WP Super Cache.

And as I said at the beginning, cache in WordPress there are several types, and usually talk about the pages, but there are other levels such as objects. For this it is highly recommended to use a system such as memcached or Redis for storage.

I recommend you check out the Improve WordPress Performance section where there is more information.

Seguir con Seguridad para WordPress

About this document

This document is regulated by the EUPL v1.2 license, published in WP SysAdmin and created by Javier Casares. Please, if you use this content in your website, your presentation or any material you distribute, remember to mention this site or its author, and having to put the material you create under EUPL license.