move cache TTL to config vars