diff options
author | friendica <info@friendica.com> | 2014-02-11 14:27:44 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-11 14:27:44 -0800 |
commit | c0e1e7ed2c46b0c2e86eeeaa6c62f10f35f93b51 (patch) | |
tree | 951bc791297e65c615d09198f0b4159730f211b0 /include | |
parent | d02529fde1ee9d7ecf317ae30abce666e1b33eb4 (diff) | |
parent | 2b38936cdee2a9ffb7223eff4a6bba271fd47ef4 (diff) | |
download | volse-hubzilla-c0e1e7ed2c46b0c2e86eeeaa6c62f10f35f93b51.tar.gz volse-hubzilla-c0e1e7ed2c46b0c2e86eeeaa6c62f10f35f93b51.tar.bz2 volse-hubzilla-c0e1e7ed2c46b0c2e86eeeaa6c62f10f35f93b51.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include')
-rw-r--r-- | include/poller.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php index eba765278..f75ba2f22 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. |