remove expired access tokens
This commit is contained in:
parent
f3aff45042
commit
01fe7d6620
@ -62,6 +62,15 @@ class Cron {
|
||||
}
|
||||
|
||||
|
||||
// delete expired access tokens
|
||||
|
||||
q("delete from atoken where atoken_expires != '%s' && atoken_expires < %s",
|
||||
dbesc(NULL_DATE),
|
||||
dbutcnow()
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Ensure that every channel pings a directory server once a month. This way we can discover
|
||||
// channels and sites that quietly vanished and prevent the directory from accumulating stale
|
||||
// or dead entries.
|
||||
|
Reference in New Issue
Block a user