Tiempo estimado de lectura: 1 minutos

How to change the WordPress memory or WP_MEMORY_LIMIT

What is the PHP memory limit?

It is the value that sets the maximum amount of memory that a script on your website can use, but what does it all mean exactly?

Let’s explain it in a more everyday way, a website is nothing more than a program that runs on a computer, the difference is that this computer is hosted in the cloud. That computer is what we call servers or hostings, your website is powered by these servers and just like the computers you have at home, they are powered in turn by processors, RAM and storage.

RAM is one of the most important parts of a server, since each of the programs (plugins, themes, the core) occupy a space in that memory, the more intensive they are as old visual builders, CRM, email programs, in short, the more consecutive tasks they execute, the more RAM they will consume. This type of programs should not occupy the same place as your website, because when they perform their tasks they compete in resources with those of your own website.

How to increase the memory of my WordPress?

First we have to decide how much we want to increase these values, 128MB is a medium value and 256MB is within the recommended range, if you do not know what you are doing ask for help or do not exceed this limit. You should know that the PHP of the web is limited to two layers, the first layer we do at the server level and we leave it quite high: 512MB, and the second layer is done at the level of the WordPress installation, which if you do not configure it, will be 40MB by default:

To change these values we must modify the wp-config.php file either by FTP or by the file manager, inside it we must locate this line:

Authentication Unique Keys and Salts

And just above paste this code:

If we want to put 256 MB of memory as maximum for each process, we put this:

/** Aumento de memoria. */
define('WP_MEMORY_LIMIT', '256M');

If we want to set a maximum of 512 MB of memory for each process, we specify this:

/** Aumento de memoria. */
define('WP_MEMORY_LIMIT', '512M');

We click on save and ready we have in my case 256MB of limit for each process.

¿Te ha sido util esta lección? Vota para poder enviarnos tu Feedback
No me gusta 0 0 de 0 han encontrado esta lección util.
Vistas: 23

Still have doubts?

We don't, we want to help you

Contact Us