added timeout to cache