• Resolved _elysium

    (@_elysium)


    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.ww.wp.xz.cn/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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘how to set wp_max_memory_limit’ is closed to new replies.