Expire cache after a certain time.