You are using the cache library incorrectly. You should not be using set if a cached file for the day already exists