get proper expire time for cache