Write endpoint refreshing rake task