From df5366a5ca0dd9ee93cbf21a61a78ffcbe66dc82 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 27 Oct 2014 15:42:26 -0700 Subject: [ticket/13232] Use a cache var with _ to force TTL and shuffle cron tasks PHPBB3-13232 --- phpBB/phpbb/cron/manager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpBB/phpbb/cron') diff --git a/phpBB/phpbb/cron/manager.php b/phpBB/phpbb/cron/manager.php index 5c8ac04b77..df9bed4bd7 100644 --- a/phpBB/phpbb/cron/manager.php +++ b/phpBB/phpbb/cron/manager.php @@ -72,7 +72,8 @@ class manager * @return \phpbb\cron\task\wrapper|null */ public function find_one_ready_task() - { + { + shuffle($this->tasks); foreach ($this->tasks as $task) { if ($task->is_ready()) -- cgit v1.2.1