1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13232] Use a cache var with _ to force TTL and shuffle cron tasks

PHPBB3-13232
This commit is contained in:
Nils Adermann
2014-10-27 15:42:26 -07:00
parent d693d91e26
commit df5366a5ca
2 changed files with 4 additions and 3 deletions

View File

@@ -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())