mirror of
https://github.com/discourse/discourse.git
synced 2025-09-12 21:10:47 +08:00
Site Setting to customize how frequently inactive users are purged
This commit is contained in:
parent
74d9293ca9
commit
7ed969f0c7
5 changed files with 14 additions and 2 deletions
10
app/jobs/scheduled/purge_inactive.rb
Normal file
10
app/jobs/scheduled/purge_inactive.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Jobs
|
||||
class PurgeInactive < Jobs::Scheduled
|
||||
every 1.day
|
||||
|
||||
def execute(args)
|
||||
User.purge_inactive
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue