aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cron.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-16 21:04:04 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-16 21:04:04 -0400
commit99354ac57622002c0bbd820235d03321406f8d39 (patch)
treef8ad698a1c901f757dfc4354721846c8be82ab7e /Zotlabs/Daemon/Cron.php
parente7b853175154688d60d83ca5935650d1128973c6 (diff)
parentf396b1bf735a7dc9eb3632e49c1269de54777c6d (diff)
downloadvolse-hubzilla-99354ac57622002c0bbd820235d03321406f8d39.tar.gz
volse-hubzilla-99354ac57622002c0bbd820235d03321406f8d39.tar.bz2
volse-hubzilla-99354ac57622002c0bbd820235d03321406f8d39.zip
Merge remote-tracking branch 'upstream/dev' into website-import-remote
Diffstat (limited to 'Zotlabs/Daemon/Cron.php')
-rw-r--r--Zotlabs/Daemon/Cron.php9
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.