Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12687

Add a constant to dissociate the displaying of the load time from DEBUG

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-RC1
    • 3.1.0-b4
    • None
    • None

      In phpBB 3.0.x the DEBUG constant had a very little impact: track the sql queries and display the load time. And many user (maybe something like 70%) like to display the load time of the page to the user and so they set the DEBUG constant to true.

      In 3.1.x the DEBUG constant add many other things:

      • twig debug
      • dump or not url_matcher
      • search or not the templates events on each page
      • ...

      And so the impact of the DEBUG constant on the performances isn't negligible at all.

      But the users still want to display the load time, and if we tell them to set the DEBUG constant to true they all will complain because their board will take something like 0.7s on each page (and for that the support team will want kill us xD)

      So we need to managed the displaying of the load time information independently of the DEBUG constant.

            bantu Andreas Fischer [X] (Inactive)
            nicofuma nicofuma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: