From 7875b79f2f87bef0fc2ebddd3cee0ef952def5d4 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 20 Jan 2015 14:04:44 -0800 Subject: [PATCH] get rid of really old poco records once weekly --- include/poller.php | 7 +++++++ include/socgraph.php | 2 ++ version.inc | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) 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 */ diff --git a/include/socgraph.php b/include/socgraph.php index 09439b605..15ef480f6 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -215,6 +215,8 @@ function poco_load($xchan = '',$url = null) { dbesc($xchan), db_utcnow(), db_quoteinterval('2 DAY') ); + + } diff --git a/version.inc b/version.inc index c376f4189..986738806 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-01-19.921 +2015-01-20.922