making the cache time more flexible -- cache forever, or for N days