_elysium
Member
Posted 11 months ago #
Hi!
I'm a bit mad and I like to use the latest svn release of wordpress.
I notice you're using WP_MAX_MEMORY_LIMIT now, from http://core.trac.wordpress.org/changeset/17749
How would I go about setting that?
I run this wp instance on a small testing vm so it doesn't need much ram (far less than 256M) and i'd like to fix it at a lower setting.
Cheers,
From that page, it's defined in /wp-includes/default-constants.php
if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) {
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
}
so I would guess you can put this in your wp-config.php:
define('WP_MAX_MEMORY_LIMIT', '16M');
Keep in mind that memory_limit in PHP is only an allowance for PHP -- if PHP doesn't need to use that much, then it won't. It's not actually allocating that amount for itself.
c-bass
Member
Posted 6 months ago #
hej,
thanks. it was the only thing which helped me after wp even doesnt follow limits i set up in the config.php. the error messages are gone now.