Sha256: b8cad1c201a20006c5f466fbd7defa2bd0ab25c6fd2b11ff408ad25a622fe19b

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

if defined?(ReviewSweeper)
  ReviewSweeper.class_eval do
    private
    
    def expire_cache_for(review)
      review.product.recalculate_rating
      review.product.taxons.each do |taxon|
        expire_fragment([taxon, 'preview'])
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
synergy_default_theme-1.0.2 app/models/review_sweeper_decorator.rb
synergy_default_theme-1.0.1 app/models/review_sweeper_decorator.rb