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

Memcached assumes getAllKeys will always return a valid array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1
    • 3.1
    • Caching

      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

            skylarkelty Skylar Kelty
            skylarkelty Skylar Kelty
            Mark Nelson Mark Nelson
            David Monllaó David Monllaó
            Jun Pataleta Jun Pataleta
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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