Added cache invalidation for teams

This somehow got lost in the shuffle.