add fallback to disk cache
fix syntax
Merge pull request #1618 from Stricted/cache_fallback

add fallback to disk cache