SAAS-1085: Optimization - Don't start sessions unless we actually need them.
This commit is contained in:
parent
a86e3ed4a8
commit
c03e9cbe9a
13 changed files with 334 additions and 197 deletions
|
@ -25,7 +25,10 @@ class BillingController extends Zend_Controller_Action {
|
|||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']);
|
||||
Billing::ensureClientIdIsValid();
|
||||
|
||||
|
||||
//Zend's CSRF token element requires the session to be open for writing
|
||||
session_start();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_BillingUpgradeDowngrade();
|
||||
|
||||
|
@ -219,7 +222,10 @@ class BillingController extends Zend_Controller_Action {
|
|||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
|
||||
//Zend's CSRF token element requires the session to be open for writing
|
||||
session_start();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_BillingClient();
|
||||
Billing::ensureClientIdIsValid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue