* Refactor caching * Bring back old bust class * Refactor with PR feedback * Remove useless return values
13 lines
312 B
Ruby
13 lines
312 B
Ruby
module EdgeCache
|
|
class BustCommentable
|
|
def self.call(commentable)
|
|
return unless commentable
|
|
|
|
EdgeCache::BustComment.call(commentable)
|
|
|
|
cache_bust = EdgeCache::Bust.new
|
|
cache_bust.call("#{commentable.path}/comments")
|
|
commentable.index_to_elasticsearch_inline
|
|
end
|
|
end
|
|
end
|