Add new daily job to clean cache in public/tmp (as suggested in #5946).

This commit is contained in:
cmrd Senya 2015-06-29 16:50:14 +03:00 committed by Jonne Haß
parent d410d2ee76
commit fe3ff10e07
2 changed files with 14 additions and 0 deletions

View file

@ -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

View 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