Moodle
  1. Moodle
  2. MDL-37263

Cache event invalidation throws an error if there are no invalidated keys.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1
    • Component/s: Caching
    • Labels:
    • Rank:
      46862

      Description

      There is no where in core presently that uses event invalidation so it can't be easily reproduced.

      But it is easy to spot the theoretical problem, have a look at the attached patch.

        Activity

        Hide
        Sam Hemelryk added a comment -

        Putting straight up for integration as this is a VERY basic fix.

        Show
        Sam Hemelryk added a comment - Putting straight up for integration as this is a VERY basic fix.
        Hide
        Dan Poltawski added a comment -

        Thanks Sam, i've integrated this now

        Show
        Dan Poltawski added a comment - Thanks Sam, i've integrated this now
        Hide
        Dan Poltawski added a comment -

        phpunit is green!

        Show
        Dan Poltawski added a comment - phpunit is green!
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Did you know that your awesome changes are the last ones landing to CVS?

        After 11 years, 2 months and 8 days... it's ended, died, closed, kaputt. Big thanks to it, has served us really well.

        Closing this as fixed, many thanks!

        Show
        Eloy Lafuente (stronk7) added a comment - Did you know that your awesome changes are the last ones landing to CVS? After 11 years, 2 months and 8 days... it's ended, died, closed, kaputt. Big thanks to it, has served us really well. Closing this as fixed, many thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: