Invalidate cache, and use updated membership for acquiring grants.

#9 
Now solves migrate problem.