aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-12 08:30:06 +1100
committerfriendica <info@friendica.com>2014-02-12 08:30:06 +1100
commit2b38936cdee2a9ffb7223eff4a6bba271fd47ef4 (patch)
tree8d118c51f2100ea0aee1b4f964f2a4070af6e543 /include/poller.php
parent841f3922aab013ac1ae1b7715de95f8246fe4f25 (diff)
parent2d9655627a0006dbf7d10afbbc2bcc0fdc2a3750 (diff)
downloadvolse-hubzilla-2b38936cdee2a9ffb7223eff4a6bba271fd47ef4.tar.gz
volse-hubzilla-2b38936cdee2a9ffb7223eff4a6bba271fd47ef4.tar.bz2
volse-hubzilla-2b38936cdee2a9ffb7223eff4a6bba271fd47ef4.zip
Merge pull request #309 from beardy-unixer/master
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.