Reativando o cache nas folhas de estilo

This commit is contained in:
2008-03-06 18:56:00 -03:00
parent 9cd00247f9
commit c206a678bd
20 changed files with 153 additions and 157 deletions

View File

@@ -17,7 +17,7 @@ class AttachmentsController < ApplicationController
# :redirect_to => { :controller => 'courses', :action => :show }
before_filter :find_attachment, :except => [ :undelete ]
after_filter :cache_sweep, :only => [ :create, :update, :destroy ]
#after_filter :cache_sweep, :only => [ :create, :update, :destroy ]
def show
end
@@ -100,6 +100,6 @@ class AttachmentsController < ApplicationController
end
def cache_sweep
expire_fragment(:controller => 'courses', :action => 'show')
expire_fragment(course_path(@course.id))
end
end