Modified to prevent raising exception when turning off query cache on mysql server with query cache already disabled
Modified to include comments
Merge pull request #1 from mdsol/feature/cache_switch

Modified to prevent raising exception when turning off query cache on my...