mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
13 lines
252 B
Ruby
13 lines
252 B
Ruby
module Jobs
|
|
|
|
class PurgeDeletedUploads < Jobs::Scheduled
|
|
recurrence { daily }
|
|
|
|
def execute(args)
|
|
grace_period = SiteSetting.purge_deleted_uploads_grace_period_days
|
|
Discourse.store.purge_tombstone(grace_period)
|
|
end
|
|
|
|
end
|
|
|
|
end
|