Allow for customizable cache expiration and SQL cleanup