added method for cache ttl control