Test closing the session to prevent asnyc blocking to see if it impacts load performance

This commit is contained in:
Duncan Sommerville 2014-12-11 12:53:45 -05:00
parent f5b4928538
commit e9a966a8a4
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
} else { } else {
$userInfo = Zend_Auth::getInstance()->getStorage()->read(); $userInfo = Zend_Auth::getInstance()->getStorage()->read();
// For now, close the session here to prevent it from blocking requests
session_write_close();
$this->setRoleName($userInfo->type); $this->setRoleName($userInfo->type);
Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($this->_acl); Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($this->_acl);