Update cacheFactory.js