memory

keiths

New member
Joined
Jan 11, 2024
Messages
1
How do I turn up my memory limit to 256

Your WP memory limit (40MB) is lower than recommended (256MB)

AND

Your "max_input_vars" setting is set to 1000. If you plan to have pages with a large number of elements on it, you should raise this setting to at least 3000.

How can I change these please?
 
Seems you are a hosting customer. You should contact your host for support. This forum is only intended for Directadmin license holders, so admins and resellers, not hosting customers.

Admins can set their own packages and settings, so please contact your host for support next time. ;)

You can raise that on your page with the php settings.
Same question (and solution) is here:
 
you have to put the according wp variable into the wp-config.php , in your case "define( 'WP_MAX_MEMORY_LIMI', '256M' );"

Here`s a list of a few other usable wp-config.php WordPress Variables:

define( 'AUTOSAVE_INTERVAL', 300 ); //auto save post/page in seconds
define( 'WP_POST_REVISIONS', 5 ); //limit post revisions to just 5
define( 'WP_POST_REVISIONS', false ); //disables post revisions completely
define( 'WP_AUTO_UPDATE_CORE', false ); //disables automatic WordPress core updates
define( 'EMPTY_TRASH_DAYS', 30 ); //auto clean your trash
define( 'WP_CRON_LOCK_TIMEOUT', 120 ); //cron lockout timer
define( 'WP_MEMORY_LIMIT', '1000M' ); //not recommended, only use temporarily to run large scripts
define( 'WP_MAX_MEMORY_LIMI', '1024M' );

As for the max input vars, there are several options:

a) in .htaccess: php_value max_input_vars 4000
b) in php.ini or .user.ini: max_input_vars =4000
c) in wp-config.php: @ini_set( 'max_input_vars' , 4000 );
 
Back
Top