Bug fix for query cache settings