Get hashed cache file name with sha-256

same as Doctrine FileCache
Fix namespace issue with instanceof operator
Merge pull request #1169 from hissy/file-page-cache

Fixes file page cache problem with long collection path