Fix queryCache caching