From 2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Tue, 11 Feb 2014 20:14:45 +0000 Subject: Clear out old notifications in the poller. --- include/poller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/poller.php b/include/poller.php index 76c82db09..4d191b853 100644 --- a/include/poller.php +++ b/include/poller.php @@ -56,7 +56,11 @@ function poller_run($argv, $argc){ foreach($r as $rr) drop_item($rr['id'],false); } - + + // expire any read notifications over a month old + + q("delete from notify where seen = 1 and date < UTC_TIMESTAMP() - INTERVAL 30 DAY"); + // 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. -- cgit v1.2.3