Support » Plugin: Multisite Enhancements » Memory usage incorrect

  • Resolved m1ndmaker

    (@m1ndmaker)


    While other plugins like WP-Memory-Usage show the correct amount of available memory (like in my case, 140M, as set in php.ini as well as wp-config.php), your plugin keeps showing only 64M of available memory.

    I have not had a look yet how your way of retrieving the total amount of available memory differs from plugins like WP-Memory-Usage, but maybe you want to have a look.

    Best

    Michael

    https://wordpress.org/plugins/multisite-enhancements/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter m1ndmaker

    (@m1ndmaker)

    So here’s the answer:

    WP-Memory-Usage uses ini_get(‘memory_limit’),

    Your plugin uses the constant WP_MEMORY_LIMIT.

    To have both show the same amount, both constants WP_MEMORY_LIMIT as well as WP_MAX_MEMORY_LIMIT need to be set in wp-config.php:

    define( 'WP_MEMORY_LIMIT', '140M' );
    define( 'WP_MAX_MEMORY_LIMIT', '140M' );

    Best

    Michael

    Plugin Author Frank Bueltge

    (@bueltge)

    Thanks for the hint, answer.
    THe plugin display the memory for WP, was on default defined in the core about the constant. That was the point, that the plugin display this const value.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Memory usage incorrect’ is closed to new replies.