Problem/Motivation
It's not very clearly documented but DrupalCacheInterface ::clear() accepts an array as $cid.
And MemCacheDrupal::clear() takes that already in account, but I think the current implementation could lead to unexpected behaviour.
Currently a cid array is separately handled but as far as I can tell the whole cid processing should be run on every array item of the array.
Proposed resolution
Add a loop around the whole cid handling to ensure array items with wildcards work as expected.
Remaining tasks
reviews needed
User interface changes
none
API changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| memcache-fix-cid-array-handling.patch | 6.19 KB | das-peter |
Comments
Comment #1
das-peter commentedPlease consider to review following issue too as it will help to avoid such issues in the future: #1871028: Enhance documentation of DrupalCacheInterface::clear()
Comment #2
japerryClosing as Drupal 7 is no longer supported.