mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/system-cron] Remove an unecessary assignment and an unecessary comment
PHPBB3-9596
This commit is contained in:
parent
c6a8abb409
commit
92c278d39a
1 changed files with 1 additions and 3 deletions
|
@ -77,8 +77,6 @@ class phpbb_cron_manager
|
||||||
* $name is the name of the cron task.
|
* $name is the name of the cron task.
|
||||||
* Cron task is expected to be a class named phpbb_cron_task_${mod}_${name}.
|
* Cron task is expected to be a class named phpbb_cron_task_${mod}_${name}.
|
||||||
*
|
*
|
||||||
* Todo: consider caching found task file list in global cache.
|
|
||||||
*
|
|
||||||
* @return array List of task names
|
* @return array List of task names
|
||||||
*/
|
*/
|
||||||
public function find_cron_task_names()
|
public function find_cron_task_names()
|
||||||
|
@ -116,7 +114,7 @@ class phpbb_cron_manager
|
||||||
|
|
||||||
if ($this->cache)
|
if ($this->cache)
|
||||||
{
|
{
|
||||||
$this->cache->put('_cron_tasks', $task_names, $ttl = 3600);
|
$this->cache->put('_cron_tasks', $task_names, 3600);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $task_names;
|
return $task_names;
|
||||||
|
|
Loading…
Add table
Reference in a new issue