Browse Source

Added missing "cron_interval" default value

pull/6993/head
Michael 3 years ago
parent
commit
2711284827
  1. 4
      config/defaults.config.php
  2. 3
      src/Worker/Cron.php

4
config/defaults.config.php

@ -72,6 +72,10 @@ return [
// Deny public access to the local user directory.
'block_local_dir' => false,
// cron_interval (Integer)
// Minimal period in minutes between two calls of the "Cron" worker job.
'cron_interval' => 5,
// cache_driver (database|memcache|memcached|redis)
// Whether to use Memcache or Memcached or Redis to store temporary cache.
'cache_driver' => 'database',

3
src/Worker/Cron.php

@ -30,9 +30,6 @@ class Cron
$last = Config::get('system', 'last_cron');
$poll_interval = intval(Config::get('system', 'cron_interval'));
if (! $poll_interval) {
$poll_interval = 10;
}
if ($last) {
$next = $last + ($poll_interval * 60);

Loading…
Cancel
Save