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

Remove hardcoded dataroot/temp and cache directory usage

XMLWordPrintable

    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_22_STABLE
    • w36_MDL-28701_m22_tempcachedir
    • Hide

      this is going to be tricky:
      1/ look at the patch and try all places that were affected
      2/ set custom dirs and repeat 1/ + verify the temp and cache is created in the custom dirs

      Show
      this is going to be tricky: 1/ look at the patch and try all places that were affected 2/ set custom dirs and repeat 1/ + verify the temp and cache is created in the custom dirs

      Usage of $CFG->dataroot . "/temp" in various forms is strewn throughout Moodle.

      I propose creating a single $CFG->tempdir (which defaults to "$CFG->dataroot/temp" to maintain backwards compatibility) to allow a single point to change the location of the temp files if needed.

            skodak Petr Skoda
            tomlanyon Tom Lanyon (Inactive)
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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