Update QueryCache middleware patch