Commit e66585be0b3b00da830065af12daf8cf758649a7
1 parent
5dd92056
Exists in
master
and in
29 other branches
ActionItem990: using expire_timeout_cache, removing unused code
Showing
2 changed files
with
1 additions
and
9 deletions
Show diff stats
app/sweepers/friendship_sweeper.rb
| ... | ... | @@ -26,10 +26,6 @@ protected |
| 26 | 26 | blocks.map(&:cache_keys).each{|ck|expire_timeout_fragment(ck)} |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | - def expire_fragment(*args) | |
| 30 | - ActionController::Base.new().expire_fragment(*args) | |
| 31 | - end | |
| 32 | - | |
| 33 | 29 | def expire_timeout_fragment(*args) |
| 34 | 30 | ActionController::Base.new().expire_timeout_fragment(*args) |
| 35 | 31 | end | ... | ... |
app/sweepers/role_assignment_sweeper.rb
| ... | ... | @@ -19,7 +19,7 @@ protected |
| 19 | 19 | def expire_cache(profile) |
| 20 | 20 | profile.cache_keys.each { |ck| |
| 21 | 21 | cache_key = ck.gsub(/(.)-\d.*$/, '\1') |
| 22 | - expire_fragment(/#{cache_key}/) | |
| 22 | + expire_timeout_fragment(/#{cache_key}/) | |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | profile.blocks_to_expire_cache.each { |block| |
| ... | ... | @@ -28,10 +28,6 @@ protected |
| 28 | 28 | } |
| 29 | 29 | end |
| 30 | 30 | |
| 31 | - def expire_fragment(*args) | |
| 32 | - ActionController::Base.new().expire_fragment(*args) | |
| 33 | - end | |
| 34 | - | |
| 35 | 31 | def expire_timeout_fragment(*args) |
| 36 | 32 | ActionController::Base.new().expire_timeout_fragment(*args) |
| 37 | 33 | end | ... | ... |