Artificial 128MB Memory limit
-
When Pretty Links is active my WordPress memory limit is decreased to 128MB. I discovered the bug starts at line 61 of pretty-links.php.
// Let's give pretty link plenty of room to work with $mem = abs(intval(@ini_get('memory_limit'))); if( $mem and $mem < 128 ) { @ini_set('memory_limit', '128M'); }I’m hosting with Kinsta which has @ini_get(‘memory_limit’) set to -1 or unlimited. When you wrap a -1 with abs it get’s turned into a positive 1 which sets off your check and limits memory to 128M. Maybe just do
$mem = intval(@ini_get('memory_limit'));and verify it’s between 0 and 128if( $mem and $mem < 128 and $mem > 0 ) {.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Artificial 128MB Memory limit’ is closed to new replies.