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

Provide static cache via cache_application during install

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.2
    • Caching
    • MOODLE_402_STABLE
    • Hide

      Simply performing an install successfully should cover this.

      To test the specific get_versioned functionality working, have mod_oublog present during install.

      Otherwise, much the same testing as MDL-76129 will verify that still works as expected.

      Show
      Simply performing an install successfully should cover this. To test the specific get_versioned functionality working, have mod_oublog present during install. Otherwise, much the same testing as MDL-76129 will verify that still works as expected.

      MDL-76129 made it possible to use the static cache in certain scenarios when caching is otherwise disabled.

      However - it provides this cache by directly returning an instance of cachestore_static rather than via cache_application/session/request.

      As a result - get_versioned is not available to be called on the cache. Currently this isn't directly an issue for core - but there are some third party plugins that do stuff during install (namely adding instances of activities to the front page) that result in a call to get_versioned on the cache.

      By instead providing a cache_application backed by cachestore_static - the cache is presented in the way it normally would be (namely, has the get_versioned capability).

            aolley Adam Olley
            aolley Adam Olley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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