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

Memcached assumes getAllKeys will always return a valid array

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.1
    • Caching

    Description

      getAllKeys can return false when the operation fails.
      The new Memcached purge has the result of the function in a foreach loop without checking the value is not false.

      In practise this means during upgrades or when you hit "purge all cache" you get spammed with:
      Warning: Invalid argument supplied for foreach() in <blah>/cache/stores/memcached/lib.php on line 513

      Attachments

        Issue Links

          Activity

            People

              skylarkelty Skylar Kelty
              skylarkelty Skylar Kelty
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Jun Pataleta Jun Pataleta
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16