I've read here, but I want to ask if I have understood this correctly.
We have a server in which WordPress admin needed more memory. The PHP
memory_limit, in PHP.ini, is set to 256M, and so was
WP_MAX_MEMORY_LIMIT in wp-includes/default-constants.php. There is a large amount of pages, and I think we will end up automatically delete pages that are older than a certain treshold, but as a quickfix I increased the memory.
I set the
WP_MAX_MEMORY_LIMIT to 512M, and that works. The way I understood the documentation is that WordPress will be allowed to use 512M instead of PHPs
memory_limit, which is set to 256M.
So, is it right that
WP_MAX_MEMORY_LIMIT overrides PHPs
It is able to use more memory than PHP is configured to use?
It certainly seems that way on our server now, but I want to be sure it is not something else going on.
EDIT: According to this answer, I can set the wp memory within the limit of php.inis limit. But that doesn't seem correct.