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

CACHE_DISABLE_ALL is not suitable for upgrade or installation

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_26_STABLE

      Description

      The problem is that if you define CACHE_DISABLE_ALL the caches get out of sync immediately - this is ok for phpunit, but it breaks install/upgrade - we need a new flag that just disables the read caching and continues to purge/update caches. At the same time we could also implement static caches for upgrades and phpunit to improve performance.

      The current hacky workaround is to use cache_helper::purge_all(true); in critical places but it is both slow and often forgotten...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              skodak Petr Skoda
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: