Topic: Skip sweeper from running in model

Hey guys,

This is my two model relationship.

team has_many groups
group belongs_to team

I have a sweeper that runs in my group model.

In my Team controller I have this in the after_create callback.

def after_create
    self.groups.create(:name => DEFAULT_GROUP, :active => true, :description => "Parent group")

I am getting errors because the group sweeper runs when the Team creates the default group. 

There is also no need for me to expire the cache for group, so is there a way to skip the sweeper from running ?

Maybe is there a better way of implementing this that I am missing ?