app/sweepers/page_cache.rb
# Delete all cache about old and new tag in this picture
Delete all cache about old and new tag in this picture
Delete all cache about old and new tag in this picture
def expire_cache_tags(picture)
    picture.tags.each do |tag|
      expire_page :controller => '/tags', :action => :show, :id => tag
      delete_cache_pagination_tag(tag)
    end
    picture.old_tag.each do |tag|
      expire_page :controller => '/tags', :action => :show, :id => tag
      delete_cache_pagination_tag(tag)
    end
  end
def expire_cache_tags ( picture ) picture . tags . each do | tag | expire_page :controller => '/tags' , :action => :show , :id => tag delete_cache_pagination_tag ( tag ) end picture . old_tag . each do | tag | expire_page :controller => '/tags' , :action => :show , :id => tag delete_cache_pagination_tag ( tag ) end end
Delete all cache about old and new tag in this picture
Delete all cache about old and new tag in this picture
picture
<not_specific>