Commit bfed6227 authored by bgm's avatar bgm

Issue #1407478 : only try to increase the memory if it is really low.

parent c8042f57
...@@ -1282,7 +1282,8 @@ function boost_views_async() { ...@@ -1282,7 +1282,8 @@ function boost_views_async() {
$m_limit_int = substr($m_limit, 0, -1); $m_limit_int = substr($m_limit, 0, -1);
$m_limit_int = (int) $m_limit_int; $m_limit_int = (int) $m_limit_int;
$m_limit_scale = strtoupper(substr($m_limit, -1)); $m_limit_scale = strtoupper(substr($m_limit, -1));
if ($m_limit_scale == 'M') {
if ($m_limit_scale == 'M' && $m_limit_int < 256) {
@ini_set('memory_limit', $m_limit_int*4 . 'M'); @ini_set('memory_limit', $m_limit_int*4 . 'M');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment