put cache duration in constant configuration