setting cache expire time