how to disable query cache with mysql.connector,con.commit()