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

Version Path
pages_core-3.15.5 lib/tasks/pages/cache.rake
pages_core-3.15.4 lib/tasks/pages/cache.rake
pages_core-3.15.3 lib/tasks/pages/cache.rake
pages_core-3.15.2 lib/tasks/pages/cache.rake
pages_core-3.15.1 lib/tasks/pages/cache.rake
pages_core-3.14.0 lib/tasks/pages/cache.rake
pages_core-3.13.0 lib/tasks/pages/cache.rake
pages_core-3.12.7 lib/tasks/pages/cache.rake
pages_core-3.12.6 lib/tasks/pages/cache.rake
pages_core-3.12.5 lib/tasks/pages/cache.rake
pages_core-3.12.4 lib/tasks/pages/cache.rake
pages_core-3.12.3 lib/tasks/pages/cache.rake
pages_core-3.12.2 lib/tasks/pages/cache.rake
pages_core-3.12.1 lib/tasks/pages/cache.rake
pages_core-3.12.0 lib/tasks/pages/cache.rake
pages_core-3.11.3 lib/tasks/pages/cache.rake
pages_core-3.11.2 lib/tasks/pages/cache.rake
pages_core-3.11.1 lib/tasks/pages/cache.rake
pages_core-3.11.0 lib/tasks/pages/cache.rake
pages_core-3.10.2 lib/tasks/pages/cache.rake