allow changing the duration of the cache validity