mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Get sapphire to self-allocate at least 64M of memory, if possible.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65778 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1458d5b973
commit
2f25dda9de
@ -139,10 +139,10 @@ default:
|
|||||||
$memory = round($memString);
|
$memory = round($memString);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check we have at least 32M
|
// Check we have at least 64M
|
||||||
if ($memory < (32 * 1024 * 1024)) {
|
if ($memory < (64 * 1024 * 1024)) {
|
||||||
// Increase memory limit
|
// Increase memory limit
|
||||||
ini_set('memory_limit', '32M');
|
ini_set('memory_limit', '64M');
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user