From 2711284827be89ab8f8021d45a3ba8e36da91406 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 10 Apr 2019 06:41:57 +0000 Subject: [PATCH] Added missing "cron_interval" default value --- config/defaults.config.php | 4 ++++ src/Worker/Cron.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/defaults.config.php b/config/defaults.config.php index 0d9e55c7d9..a83a373db2 100644 --- a/config/defaults.config.php +++ b/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', diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 7e3bc747cc..75a6415631 100644 --- a/src/Worker/Cron.php +++ b/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); -- 2.39.5