Sha256: ffb586a1f689c5f245e3ede28ed6685f1fba48c678a8f96a12374649e41c9215
Contents?: true
Size: 601 Bytes
Versions: 29
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true namespace :pages do namespace :cache do desc "Sweep the pages cache" task sweep: :environment do PagesCore::StaticCache.handler.sweep_now! Rails.logger.info "Static cache swept" end desc "Sweep the pages cache (queued)" task sweep_later: :environment do PagesCore::StaticCache.handler.sweep! Rails.logger.info "Static cache sweeping queued" end desc "Purge the entire pages cache" task purge: :environment do PagesCore::StaticCache.handler.purge! Rails.logger.info "Cache purged" end end end
Version data entries
29 entries across 29 versions & 1 rubygems