Extending sfFileCache with Hashed Directory support

Unfortunately, sfFileCache doesn’t scale well on certain file systems as it puts all of it’s cached files in one location. This simple class adds support for hashing the directory name based on a the name of the item being cached. It wasn’t worth a plugin, so I’m pasting it here.

Leave a Reply

Your email address will not be published. Required fields are marked *