Skip to content

Commit

Permalink
Update geoportal_s3.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Jul 23, 2024
1 parent cd0da2b commit 821a4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/geoportal/geoportal_s3.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace :geoportal do
namespace :s3 do
desc 'Clear S3 Cache'
desc 'Clear S3 Cache - removes cached files older than 7 days'
task clear_cache: :environment do
Shrine.storages[:cache].clear! { |object| object.last_modified < Time.now - 7*24*60*60 }
end
Expand Down

0 comments on commit 821a4b8

Please sign in to comment.