WordFence Memory Issue
-
Hi
I recently changed one of my websites to use 1G of memory and included the define WP_MEMORY_LIMIT of 1G.
Unfortunately WordFence appears to be overwriting this value with 128M which is causing a number of memory issues on a large site.
I think I’ve tracked it down to line 38 of wordfence.php where you cast the memory limit to an int.
if((int) @ini_get('memory_limit') < 128){ if(strpos(ini_get('disable_functions'), 'ini_set') === false){ @ini_set('memory_limit', '128M'); //Some hosts have ini set at as little as 32 megs. 64 is the min sane amount of memory. } }
In my case, 1G gets cast to 1, being less than 128 and setting the limit.
Let me know if you need any more information to replicate this issue.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘WordFence Memory Issue’ is closed to new replies.