Zend_Cache_Backend_File and tag based cleaning
by Steven Brown on Apr.06, 2009, under Zend Framework
Further to my last post about the automatic cleaning, you will come across similar performance issues when you want to clean or invalidate caches based on tags. Since Zend_Cache_Backend_File does not store all tags in a single index file, it must load and check EVERY SINGLE FILE with the same prefix to see if they contain the tags and need to be cleaned. The end result is a major performance hit when you perform this clean if you have too many files with the same prefix.
In my case I was able to swap out the tagging with a simple prefix change.