MDL-76218 cachestore_redis: delete_many can fail with no keys
commitbe11ee3383e8b53c4cedbed0df62186bcf29e163
authorsam marshall <s.marshall@open.ac.uk>
Mon, 14 Nov 2022 11:11:18 +0000 (14 11:11 +0000)
committerIlya Tregubov <ilya@moodle.com>
Thu, 1 Dec 2022 05:59:05 +0000 (1 08:59 +0300)
tree3783e7c4e904101a85751f591cfebf02aaee5b30
parentfbb0fd952d384ed0b0da7a81475fd00bd1f815b2
MDL-76218 cachestore_redis: delete_many can fail with no keys

In some cases, we get an error message such as:

Wrong parameter count for Redis::zRem()

Within the delete_many function. This function requires at least one
key to be supplied, but if delete_many is called with an empty array,
we will call it with no keys.
cache/stores/redis/lib.php
cache/stores/redis/tests/store_test.php