mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: make BulkLoader::load() get a memory_limit for ini_set, default is 512M.
MINOR: increase the crm import memory_limit to 2048M. MINOR: Make FirstName and Surname of Member table be indexed. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71706 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7fca5c4a6e
commit
c799947171
@ -128,9 +128,9 @@ abstract class BulkLoader extends ViewableData {
|
||||
*
|
||||
* @return BulkLoader_Result See {@link self::processAll()}
|
||||
*/
|
||||
public function load($filepath) {
|
||||
public function load($filepath, $memory_limit='512M') {
|
||||
ini_set('max_execution_time', 3600);
|
||||
ini_set('memory_limit', '512M');
|
||||
ini_set('memory_limit', $memory_limit);
|
||||
return $this->processAll($filepath);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user