aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-20 14:04:44 -0800
committerfriendica <info@friendica.com>2015-01-20 14:04:44 -0800
commit7875b79f2f87bef0fc2ebddd3cee0ef952def5d4 (patch)
tree15d5c2e529618e12fe35a1ea09bfaecdd6a331de /include/poller.php
parent9d5e9720132b9512c64d9bddb8c9d8763cf9cec1 (diff)
downloadvolse-hubzilla-7875b79f2f87bef0fc2ebddd3cee0ef952def5d4.tar.gz
volse-hubzilla-7875b79f2f87bef0fc2ebddd3cee0ef952def5d4.tar.bz2
volse-hubzilla-7875b79f2f87bef0fc2ebddd3cee0ef952def5d4.zip
get rid of really old poco records once weekly
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php
index bd3f81a2e..896553a43 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -158,6 +158,13 @@ function poller_run($argv, $argc){
mark_orphan_hubsxchans();
+ // get rid of really old poco records
+
+ q("delete from xlink where xlink_updated < %s - INTERVAL %s",
+ db_utcnow(), db_quoteinterval('14 DAY')
+ );
+
+
/**
* End Cron Weekly
*/