2
0
Fork 0
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:
Robin Ward 2014-08-13 15:11:19 -04:00
parent 74d9293ca9
commit 7ed969f0c7
5 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,10 @@
module Jobs
class PurgeInactive < Jobs::Scheduled
every 1.day

def execute(args)
User.purge_inactive
end
end
end