aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-03-04 11:12:34 +0100
committerMario Vavti <mario@mariovavti.com>2015-03-04 11:12:34 +0100
commite877eaed493c449cb3dbdf2bc2d4ec231628047e (patch)
treebf183697a06ecad92ab739b968e76a674926a1ee
parente5e96dfbffd48b3d6b527e539e300a5091e7a19c (diff)
parent32968745fe219a28aa50898a5c109e261f45d582 (diff)
downloadvolse-hubzilla-e877eaed493c449cb3dbdf2bc2d4ec231628047e.tar.gz
volse-hubzilla-e877eaed493c449cb3dbdf2bc2d4ec231628047e.tar.bz2
volse-hubzilla-e877eaed493c449cb3dbdf2bc2d4ec231628047e.zip
Merge branch 'master' of https://github.com/friendica/red
-rw-r--r--include/queue.php8
-rw-r--r--version.inc2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/queue.php b/include/queue.php
index b6a540ef9..8e97b4a1a 100644
--- a/include/queue.php
+++ b/include/queue.php
@@ -39,6 +39,14 @@ function queue_run($argv, $argc){
// so that we don't start off a thousand deliveries for a couple of dead hubs.
// The zot driver will deliver everything destined for a single hub once contact is made (*if* contact is made).
// Other drivers will have to do something different here and may need their own query.
+
+ // Note: this requires some tweaking as new posts to long dead hubs once a day will keep them in the
+ // "every 15 minutes" category. We probably need to prioritise them when inserted into the queue
+ // or just prior to this query based on recent and long-term delivery history. If we have good reason to believe
+ // the site is permanently down, there's no reason to attempt delivery at all, or at most not more than once
+ // or twice a day.
+
+
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
$prefix = 'DISTINCT ON (outq_posturl)';
$suffix = 'ORDER BY outq_posturl';
diff --git a/version.inc b/version.inc
index 8dd1bb24f..2bdb6992f 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-03-03.960
+2015-03-04.961