Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17548

Allow eZ Publish to run a page with no db connection at all

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Misc
    • 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

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: