• I have some questions about wp_memory_limit and php_memory settings.

    I have this situation:

    – php memory is 512MB max, set by my webhost
    – wp_memory_limit by default is 40MB (like set in wp-includes/default-constants.php)

    Considering these 2 settings I have this questions:

    – What happens when I change nothing? Will WordPress use just 40MB and will not use most of the 512MB memory then?

    – Or does WordPress overwrite the 40MB setting in wp-includes/default-constants.php if a higher value is set in php.ini (512MB)?

    – If WordPress does not overwrite the the 40MB setting, do I have to add “define(‘WP_MEMORY_LIMIT’, ‘xxxM’);” to my wp-config file?

    – And must the value in “define(‘WP_MEMORY_LIMIT’, ‘xxxM’);” be the same as the maximum available php memory (512MB) or is it better to set the value lower and save some memory for other tasks?

    Thank you very much for your help ??

    Alwin

    • This topic was modified 6 years, 1 month ago by Steven Stern (sterndata). Reason: moved from developing to everything else
Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you want to use more than the default 40MB of memory for your site, then you need to tell WP to use more. If you’re not getting errors, then you don’t to change anything. If memory issues do occur, then try bumping it up to 128 or 256 or 512 if necessary. If WP needs the memory, it needs it. If it’s not using it, it’s not used, so you’re not “saving it”.

Viewing 1 replies (of 1 total)
  • The topic ‘wp memory’ is closed to new replies.