discourse/app/jobs/scheduled/purge_deleted_uploads.rb

14 lines
243 B
Ruby
Raw Normal View History

2013-11-27 16:01:41 -05:00
module Jobs
class PurgeDeletedUploads < Jobs::Scheduled
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