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

MUC: Session cache is not purged for another user

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.4.1, 2.5
    • 2.4.2
    • Caching

    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

              samhemelryk Sam Hemelryk
              marina Marina Glancy
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/13