Change CacheFactory to allow filesystem cache type to be overridden