Set a cache time