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

Allow the ability to delete a cache definition without breaking upgrades

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.5, 3.5
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE

      Description

      See MDL-57936.

      An example of where we remove a cache definition from core - https://github.com/moodle/moodle/commit/9470e4d1ed65fb1e9dfeaeb167aab10584cb50e1.

      The problem is a version bump is not enough to clear the cache file so you encounter the following error -

      Coding error detected, it must be fixed by a programmer: The data source class does not exist
      

      The current workaround from Matteo Scaramuccia is:

      Removing muc/ will reset the cache stores mapping to the default setting so that is the workaround, together w/ removing the cache/ folder to let MUC regenerate it according to the default setting.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              markn Mark Nelson
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: