remove expired access tokens

This commit is contained in:
redmatrix 2016-07-15 17:34:44 -07:00
parent f3aff45042
commit 01fe7d6620

View File

@ -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.