fix wrong scope for influxdb client and cache