Bump up memory for LDAP import of large number of users

This commit is contained in:
snipe 2016-06-21 12:22:10 -07:00
parent e9227f77b6
commit 508e7acb54

View file

@ -40,6 +40,8 @@ use Illuminate\Http\Request;
* *
* @version v1.0 * @version v1.0
*/ */
class UsersController extends Controller class UsersController extends Controller
{ {
@ -1132,6 +1134,8 @@ class UsersController extends Controller
*/ */
public function postLDAP() public function postLDAP()
{ {
ini_set('max_execution_time', 600); //600 seconds = 10 minutes
ini_set('memory_limit', '500M');
$location_id = e(Input::get('location_id')); $location_id = e(Input::get('location_id'));