code standards, added better enforcement of the cache ttl