add clearing of query cache