Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67348

Performance regression in css delivery

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.8.1
    • 3.8, 3.8 regressions
    • Performance, Themes
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-67348-master
    • Hide

      This is really difficult to test because it's all to do with caching.

      I would suggest that a developer be assigned testing of this issue and add some calls to error_log into theme/styles.php to display which file is being served, and from where, and when we start to generate it again.

      Show
      This is really difficult to test because it's all to do with caching. I would suggest that a developer be assigned testing of this issue and add some calls to error_log into theme/styles.php to display which file is being served, and from where, and when we start to generate it again.

    Description

      We removed the CSS Chunker required for IE <=9 in MDL-55751, but in doing so we also removed the bypass of CSS generation.

      Whilst we do not actually generate the CSS any more often, we do unnecessarily connect to the DB, and load up cache definitions, and then serve from the cache when the file is already available on disk. This will only be the first time each browser connects but that's still a massive performance regression.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve Adrian Greeve
              Shamim Rezaie Shamim Rezaie
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jan/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 50 minutes
                  4h 50m