aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-04 10:27:02 +0000
committerMario <mario@mariovavti.com>2022-12-04 10:27:02 +0000
commit79e6c9590ab4960661e672dfae8b2e640d2e923b (patch)
treee151f239f15bb772da845efa0d312e62d7065a5d /Zotlabs/Daemon
parentb4dffe5946c5c2b43a7f941e1076bf5026812508 (diff)
downloadvolse-hubzilla-79e6c9590ab4960661e672dfae8b2e640d2e923b.tar.gz
volse-hubzilla-79e6c9590ab4960661e672dfae8b2e640d2e923b.tar.bz2
volse-hubzilla-79e6c9590ab4960661e672dfae8b2e640d2e923b.zip
the logic for public stream has changed - adjust help text and externals, disable lockfile check in cron daemon
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Cron.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php
index c3158a4eb..9b8946e57 100644
--- a/Zotlabs/Daemon/Cron.php
+++ b/Zotlabs/Daemon/Cron.php
@@ -19,6 +19,7 @@ class Cron {
}
}
+/*
// Check for a lockfile. If it exists, but is over an hour old, it's stale. Ignore it.
$lockfile = 'store/[data]/cron';
if ((file_exists($lockfile)) && (filemtime($lockfile) > (time() - 3600))
@@ -30,6 +31,7 @@ class Cron {
// Create a lockfile. Needs two vars, but $x doesn't need to contain anything.
$x = '';
file_put_contents($lockfile, $x);
+*/
logger('cron: start');
@@ -209,10 +211,10 @@ class Cron {
}
- // pull in some public posts
+ // pull in some public posts if allowed
- $disable_discover_tab = get_config('system', 'disable_discover_tab') || get_config('system', 'disable_discover_tab') === false;
- if (!$disable_discover_tab)
+ $disable_externals = get_config('system', 'disable_discover_tab') || get_config('system', 'disable_discover_tab') === false || get_config('system', 'site_firehose');
+ if (!$disable_externals)
Master::Summon(['Externals']);
$restart = false;
@@ -234,7 +236,7 @@ class Cron {
set_config('system', 'lastcron', datetime_convert());
//All done - clear the lockfile
- @unlink($lockfile);
+ //@unlink($lockfile);
return;
}