aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cron.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-15 17:34:44 -0700
committerredmatrix <git@macgirvin.com>2016-07-15 17:34:44 -0700
commit01fe7d6620644daa8c73ed34aa5b9e4bf832db15 (patch)
treec334ca6b73eff64a03fadbdbdc92c66f41e8c2a8 /Zotlabs/Daemon/Cron.php
parentf3aff45042096ab113b77492c0018d5e6b47c7e4 (diff)
downloadvolse-hubzilla-01fe7d6620644daa8c73ed34aa5b9e4bf832db15.tar.gz
volse-hubzilla-01fe7d6620644daa8c73ed34aa5b9e4bf832db15.tar.bz2
volse-hubzilla-01fe7d6620644daa8c73ed34aa5b9e4bf832db15.zip
remove expired access tokens
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.