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

Moodle cache helper always clean all session data

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.18, 3.11.11, 4.0.5, 4.1
    • None
    • Caching
    • None

    Description

                          if ((int)$value['lastaccess'] < $purgetime || true) {
                              $todelete[] = $key;
                          }
      

      https://github.com/moodle/moodle/blob/b8b905cd90f7a1d0db59a70a32d47e015dcfbfea/cache/classes/helper.php

       

      || true will cause to delete all the keys.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rlemaire Renaud Lemaire
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: