Sha256: ad0e5c92896be27482a4ffc99c7a64c1be5e40c70b56413cbe2abe916b87b393
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
# encoding: utf-8 namespace :pages do namespace :cache do desc "Sweep the pages cache" task sweep: :environment do swept_files = PagesCore::CacheSweeper.sweep! Rails.logger.info "Cache swept, #{swept_files.length} files deleted." end desc "Purge the entire pages cache" task purge: :environment do PagesCore::CacheSweeper.purge! Rails.logger.info "Cache purged." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.4.3 | lib/tasks/pages/cache.rake |
pages_core-3.5.1 | lib/tasks/pages/cache.rake |
pages_core-3.4.2 | lib/tasks/pages/cache.rake |