Closed (fixed)
Project:
Redis
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2012 at 08:55 UTC
Updated:
22 May 2014 at 22:07 UTC
Jump to comment: Most recent
It's not very clearly documented but DrupalCacheInterface ::clear() accepts an array as $cid.
Checkout the handling in DrupalDatabaseCache::clear()
As far as I can tell currently the redis cache backend doesn't take that into account. What leads to strange behaviour e.g. with entitycache enabled, which uses arrays as cid.
Add a loop in Redis_Cache::clear() to handle array cid.
Reviews needed.
none
none
| Comment | File | Size | Author |
|---|---|---|---|
| redis-fix-cache-clear.patch | 559 bytes | das-peter |
Comments
Comment #1
pounardThank you very much, will do a review and push after some tests as soon as I can, can you provide a procedure to reproduce the bug?
Comment #2
das-peter commentedUnfortunately I stumbled over this issue while executing one of our migration jobs. And as it was reproducible I used this job for further debugging. Thus I don't have an isolated procedure how to reproduce this.
Comment #3
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 #4
pounardWill do, thanks.
Comment #5
pounardPushed at http://drupalcode.org/project/redis.git/commit/f0cf25
A new release including this patch and a few others fixing mostly the Predis backend will happen in a few minutes.
Thank you very much.