Sha256: 48cc988ba1248e8537241a65610e1a034f3718da5014d6da416a3247d0f521db

Contents?: true

Size: 395 Bytes

Versions: 8

Compression:

Stored size: 395 Bytes

Contents

namespace :scrivito do
  namespace :cache do
    description = "Cap number of cache file inodes at "
    description += "#{Scrivito::CacheGarbageCollector::DEFAULT_MAX_FILE_INODES} "
    description += "(Use MAX_FILE_INODES=500 to specify the maximum)"

    desc description
    task gc: :environment do
      Scrivito::CacheGarbageCollector.new(ENV['MAX_FILE_INODES']).run_gc
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
scrivito_sdk-0.18.1 lib/tasks/cache.rake
scrivito_sdk-0.18.0 lib/tasks/cache.rake
scrivito_sdk-0.17.0 lib/tasks/cache.rake
scrivito_sdk-0.16.0 lib/tasks/cache.rake
scrivito_sdk-0.15.0 lib/tasks/cache.rake
scrivito_sdk-0.14.0 lib/tasks/cache.rake
scrivito_sdk-0.13.0 lib/tasks/cache.rake
scrivito_sdk-0.12.0 lib/tasks/cache.rake