Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
None
-
4.4.0
-
None
Description
Since we currently have session-on-demand, it would be good to have a page generated with 0 queries done and 0 connections done to the db, when there are no queries. A performance dream!
Steps to achieve the goal:
1. fix index.php, around line 430: the $dbrequired and $sessionrequired variables are not linked to one another
1b. fix ezsession class not to look into global vars for $GLOBALS['eZSiteBasics']['session-required'] (bad bad code: encapsulation breakage!)
1c. try to start content/view/full/2, after having added to the ezdb::connect() call a debug_backtrace() && die() call
2. loop correcting all offenders. Found so far:
3. eZContentObjectStateGroup::limitations(): starts a db connection to get the db name
3b. in suborder: we must be able to call ezdb::initialize WITHOUT opening the connection if we want
4. a call to eZDB::checkTransactionCounter(); at line 1120 of index.php.
It should only be done if we are connected to db or if connection is required