Clear out old notifications in the poller.

This commit is contained in:
Thomas Willingham 2014-02-11 20:14:45 +00:00
parent 841f3922aa
commit 2d9655627a

View File

@ -57,6 +57,10 @@ function poller_run($argv, $argc){
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.