update achievement after grade changed

Sure. BTW, can we move this out of the thread ? is it time consuming?

ActionController::Base.new.expire_fragment("sidebar/#{course.id}/uc/#{self.id}")


On Tue, Sep 9, 2014 at 11:08 PM, Raymoond Tang <notifications@github.com>
wrote:

> In app/models/user_course.rb:
>
> > @@ -139,10 +139,15 @@ def mark_as_seen(obj)
> >
> >    def update_exp_and_level_async
> >      update_exp_and_level
> > +    update_ach_async
> > +    Thread.new {
> > +      ActionController::Base.new.expire_fragment("sidebar/#{course.id}/uc/#{self.id}")
>
> they shouldn't be put in two separate thread. please restore back to how
> it was.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Coursemology/coursemology.org/pull/205/files#r17306202>
> .
>