aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-02-11 20:14:45 +0000
committerThomas Willingham <founder@kakste.com>2014-02-11 20:14:45 +0000
commit2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750 (patch)
tree8d118c51f2100ea0aee1b4f964f2a4070af6e543 /include/poller.php
parent841f3922aab013ac1ae1b7715de95f8246fe4f25 (diff)
downloadvolse-hubzilla-2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750.tar.gz
volse-hubzilla-2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750.tar.bz2
volse-hubzilla-2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750.zip
Clear out old notifications in the poller.
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php6
1 files changed, 5 insertions, 1 deletions
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.