WP Memory Limit

wordPress prompted WP Memory Limit questions
to modify the file [wp-includes] -> [ default-constants.php] file

第40行开始:
// Define memory limits.
if ( ! defined( ‘WP_MEMORY_LIMIT’ ) ) {
if ( false === wp_is_ini_value_changeable( ‘memory_limit’ ) ) {
define( ‘WP_MEMORY_LIMIT’, $current_limit );
} elseif ( is_multisite() ) {
define( ‘WP_MEMORY_LIMIT’, ‘256MM’ );
} else {
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
}
}

if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) {
	if ( false === wp_is_ini_value_changeable( 'memory_limit' ) ) {
		define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
	} elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = 256M */ ) {
		define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
	} else {
		define( 'WP_MAX_MEMORY_LIMIT', '256M' );
	}
}

Modify the value of [256M] to
add micro-channel Learn More ...
Here Insert Picture Description

Published 25 original articles · won praise 4 · Views 616

Guess you like

Origin blog.csdn.net/happyk213/article/details/103200899