Added a new variable to control the expiration time in the cache