2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-11-27 16:01:41 -05:00
|
|
|
module Jobs
|
2019-10-02 00:01:53 -04:00
|
|
|
class PurgeDeletedUploads < ::Jobs::Scheduled
|
2014-02-05 18:14:41 -05:00
|
|
|
every 1.day
|
2013-11-27 16:01:41 -05:00
|
|
|
|
|
|
|
def execute(args)
|
|
|
|
grace_period = SiteSetting.purge_deleted_uploads_grace_period_days
|
|
|
|
Discourse.store.purge_tombstone(grace_period)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|