Invalidate all query caches for current thread #35089
eileencodes wants to merge
eileencodes:fix-query-cache-for-database-switching
into rails:master
eileencodes:fix-query-cache-for-database-switching
into rails:master