That code is not run for all requests – see further up the file where there is a return;.
David
The requests I meant was when I open product list, product page, add products to cart, check out. Maybe not all, but many.
Those returns you probably mean are included in a conditional block that does not execute for me because $_SERVER['USER'] == 'www-data'. Why is there such condition added, that $_SERVER['USER'] must be empty?
Hi Jānis,
Yes, I see – thank you. I believe when that line was written – many years ago – $_SERVER['USER'] was only likely to be seen if running the process from the CLI in some way. But some cursory examination indicates that this is no longer the case – it is set at least when running under php-fpm.
I will look into amending this check for our next release.
N.B. It’s very unusual to want to run WordPress with less than 192MB available memory these days – it doesn’t take many plugins active to use that up, in my experience, anyway.
David
OK, thanks!
Yes, maybe we’ll increase it to 192M from 128M.