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

Possible performance issue with climaintenance.html read

XMLWordPrintable

    • MOODLE_38_STABLE

      Moodle checks if file $CFG->dataroot/climaintenance.html exists on each request.
      If it does, maintenance mode is enabled.

      However, on slow filesystem (like NFS mount) this check may be slow - and on systems with many requests, it will affect the performance of Moodle.

      The check is done in:
      https://github.com/moodle/moodle/blob/master/lib/setup.php#L322

      if (file_exists("$CFG->dataroot/climaintenance.html")) {
      

      I suggest to create new $CFG entry and make the location of climaintenance.html configurable, with the default pointing to $CFG->dataroot/climaintenance.html. This could be configurable in config.php only, with corresponding documentation in config-dist.php.

            Unassigned Unassigned
            tmuras Tomasz Muras
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.