Completed the cache problem