Only call CacheMgr.put(cache) if the cache option is true.