Steven Brown

Archive for April, 2009

Zend_Cache_Backend_File and tag based cleaning

by 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.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!