View more context

 

nicxvan

but it also validated the value you can see in that string

nicxvan

$email = EmailField::create('Email', 'Email');

klemen

I am having people hit lots of memory limit errors for image intensive pages. I have 512 Mb available, I am really reluctant to increase the memory limit. Is there a way to programatically set it for admin vs frontend? How do you guys handle this? It’s just baffling that in a recommended configuration, for production they recommend 128Mb - that just seems impossible 😛

firesphere

SilverStripe itself is fine with 128Mb, it's the image handling that's not factored in. You could use _config.php to check if the current user is logged in and is admin, and up the memory limit for that one case

firesphere

After it's resampled, the memory usage should drop to normal again