diff options
author | redmatrix <git@macgirvin.com> | 2016-07-17 21:40:04 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-17 21:40:04 -0700 |
commit | de4f9d68bdaade902a8030888f9df035fa1329ec (patch) | |
tree | 5021daad0c4002ce9b7c89233b7c8446552b5a07 /Zotlabs/Daemon/Cron.php | |
parent | 191cd21028ab108c2a7f982c654601d780865eff (diff) | |
parent | 571b8cc85b3a770f16aed021bb39b889e0275ed6 (diff) | |
download | volse-hubzilla-de4f9d68bdaade902a8030888f9df035fa1329ec.tar.gz volse-hubzilla-de4f9d68bdaade902a8030888f9df035fa1329ec.tar.bz2 volse-hubzilla-de4f9d68bdaade902a8030888f9df035fa1329ec.zip |
Merge branch 'dev' into perms
Diffstat (limited to 'Zotlabs/Daemon/Cron.php')
-rw-r--r-- | Zotlabs/Daemon/Cron.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index d5b41274b..5af8174bf 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -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. |