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

MUC: Session cache is not purged for another user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.1, 2.5
    • Fix Version/s: 2.4.2
    • Component/s: Caching
    • Labels:

      Description

      I was trying to create a unit test for this situation but could not emulate different sessions.

      There is a session cache
      $cache = cache::make_from_params(cache_store::MODE_SESSION, ...);

      I have two users simultaneously working with a website. One of them updates information and purges the cache. The second one still sees the same data it was before purging. If the second user logs out and in, he can see the updated data.

      I would expect that when cache is purged, it is purged for all users.

      Also I wrote several unit tests that fail:
      https://github.com/marinaglancy/moodle/compare/master...wip-MDL-38165-master

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              marina Marina Glancy
              Integrator:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Mar/13