moved cache expiration timeout to config