WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”.
Increase the WP Memory Limit with
Connect to your site with SFTP and navigate to the root folder of your website, find the wp-config.php file and add the following line:
define( 'WP_MEMORY_LIMIT', '128M'
);
You must insert the line just BEFORE
/* That's all, stop editing! Happy blogging. */
in the wp-config.php file.
Using Templ Optimizer
Another method to change the WordPress memory limit is to install our Templ Optimizer plugin on your website and change the memory limit from within our plugin.