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

CommentFileSizeAuthor
memcache-fix-cid-array-handling.patch6.19 KBdas-peter

Comments

das-peter’s picture

Please consider to review following issue too as it will help to avoid such issues in the future: #1871028: Enhance documentation of DrupalCacheInterface::clear()

japerry’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing as Drupal 7 is no longer supported.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.