Merge pull request #6993 from annando/cron-interval

Added missing "cron_interval" default value
This commit is contained in:
Philipp 2019-04-10 11:14:42 +02:00 committed by GitHub
commit a65a30b303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -72,6 +72,10 @@ return [
// Deny public access to the local user directory. // Deny public access to the local user directory.
'block_local_dir' => false, '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) // cache_driver (database|memcache|memcached|redis)
// Whether to use Memcache or Memcached or Redis to store temporary cache. // Whether to use Memcache or Memcached or Redis to store temporary cache.
'cache_driver' => 'database', 'cache_driver' => 'database',

View file

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