Fix how cache manager is passed to connection.