Add new daily job to clean cache in public/tmp (as suggested in #5946).
This commit is contained in:
parent
d410d2ee76
commit
fe3ff10e07
2 changed files with 14 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
## Features
|
||||
* Add configuration options for some debug logs [#6090](https://github.com/diaspora/diaspora/pull/6090)
|
||||
* Send new users a welcome message from the podmin [#6128](https://github.com/diaspora/diaspora/pull/6128)
|
||||
* Cleanup temporary upload files daily [#6147](https://github.com/diaspora/diaspora/pull/6147)
|
||||
|
||||
# 0.5.1.2
|
||||
|
||||
|
|
|
|||
13
app/workers/clean_cached_files.rb
Normal file
13
app/workers/clean_cached_files.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module Workers
|
||||
class CleanCachedFiles < Base
|
||||
include Sidetiq::Schedulable
|
||||
|
||||
sidekiq_options queue: :maintenance
|
||||
|
||||
recurrence { daily }
|
||||
|
||||
def perform
|
||||
CarrierWave.clean_cached_files!
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue