cakephp/cakephp — pull request #240 by tPl0ch (2011-10-11 11:41:09+00:00)
Title: Removed unnessecary file handler in FileEngine caching. Added 'mask' attribute to FileEngine::$settings

I removed an unnessecary file handler in FileEngine::write() since an SplFileObject is already created in FileEngine::_setKey().

Also added a 'mask' setting in FileEngine::$settings to customize the file permissions with which the cache files are created.

Added test cases.