config update and query cache bug fix