Skip to content

Commit

Permalink
chapter sweeper no longer being actually used for anything
Browse files Browse the repository at this point in the history
Signed-off-by: shalott <shalott@gmail.com>
  • Loading branch information
shalott committed Dec 2, 2012
1 parent 60d4078 commit fb86228
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion app/controllers/chapters_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ChaptersController < ApplicationController
before_filter :check_visibility, :only => [ :show]
before_filter :check_user_status, :only => [:new, :create, :edit, :update]

cache_sweeper :chapter_sweeper
cache_sweeper :feed_sweeper

# GET /work/:work_id/chapters
Expand Down
2 changes: 1 addition & 1 deletion app/models/redis_search_index_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def self.queue_work(work)
# tell elasticsearch to reindex each work
def self.reindex_works
Work.where(:id => get_ids(WORKS_INDEX_KEY)).find_each do |w|
w.update_index
w.touch
w.update_index
end
end

Expand Down
19 changes: 0 additions & 19 deletions app/sweepers/chapter_sweeper.rb

This file was deleted.

0 comments on commit fb86228

Please sign in to comment.