|
@@ -41,9 +41,9 @@ if (function_exists('ini_set')) {
|
|
|
};
|
|
|
|
|
|
$memoryLimit = trim(ini_get('memory_limit'));
|
|
|
- // Increase memory_limit if it is lower than 1GB
|
|
|
- if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1024) {
|
|
|
- @ini_set('memory_limit', '1G');
|
|
|
+ // Increase memory_limit if it is lower than 1.5GB
|
|
|
+ if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1536) {
|
|
|
+ @ini_set('memory_limit', '1536M');
|
|
|
}
|
|
|
unset($memoryInBytes, $memoryLimit);
|
|
|
}
|