changed hardcoded cache duration to params-based value