ZF-11833: Backend Static Cache clean method do not support the Zend_Cache::CLEANING_MODE_MATCHING_TAG mode
Description
Zend_Cache_Backend_Static::clean() does not implement the option Zend_Cache::CLEANING_MODE_MATCHING_TAG.
In this case the implementation from CLEANING_MODE_MATCHING_ANY_TAG is used. Which issn't the same! CLEANING_MODE_MATCHING_TAG: Should be used for an "and" conitioning of given tags. CLEANING_MODE_MATCHING_ANY_TAG: Should be used for an "or" conitioning of given tags.
Comments
Posted by Janos Thiele (janos) on 2011-10-20T09:05:49.000+0000
The solution for me was to implement the case case Zend_Cache::CLEANING_MODE_MATCHING_TAG:
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-28T15:39:51.000+0000
Can this change be safely implemented without breaking backwards-compatibility? Any code in the wild using {{Zend_Cache::CLEANING_MODE_MATCHING_TAG}} will behave differently than the original developer expected if this cleaning mode is (re-)implemented properly.
Posted by Janos Thiele (janos) on 2011-11-03T08:46:42.000+0000
I guess so. Otherwise the developers has sed the Zend_Cache::CLEANING_MODE_MATCHING_TAG in the worng way!?
The documentation clearly says: {quote}If you want to remove cache entries matching the tags 'tagA' and 'tagC':
and
{quote} If you want to remove cache entries matching the tags 'tagA' or 'tagC':
{quote}