Attached is a patch (against DRUPAL-5) that follows the Drupal 6 variable naming conventions in cache_clear_all(). The problem is, some variables within this function in Drupal 5 are named $key, while others are named $cid. As a result, wildcard caches are not being run.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | cacherouter_cache_clear_all.patch | 787 bytes | TBarregren |
| cacherouter.inc_.txt | 1.04 KB | mundanity |
Comments
Comment #1
TBarregren commentedI think this is a critical bug, since Drupal can't clear the cache. However, mundanity patch introduce new bugs, because it renames $key to $cid. I therefore suggest the opposite, rename $cid to $key as in the attached patch.
Comment #2
psynaptic commentedDoes this have any effect on the 6.x version? I'm using filecache and I can't clear cache unless I manually delete the files.
Comment #3
slantview commentedThank you so much. I renamed cid in all cacherouter.inc files to key. This should now work as expected. This was definitely a CRITICAL bug. I'm so sorry it has taken me so long to get this working correctly!