Explorar o código

close session early when doing big jobs

Jordi Boggiano %!s(int64=10) %!d(string=hai) anos
pai
achega
daba8a9742
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Packagist/WebBundle/Controller/WebController.php

+ 2 - 0
src/Packagist/WebBundle/Controller/WebController.php

@@ -829,6 +829,8 @@ class WebController extends Controller
         }
 
         if ($package->getMaintainers()->contains($user) || $this->get('security.context')->isGranted('ROLE_UPDATE_PACKAGES')) {
+            $req->getSession()->save();
+
             if (null !== $autoUpdated) {
                 $package->setAutoUpdated((Boolean) $autoUpdated);
                 $doctrine->getManager()->flush();