mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14496] Cache last update of update list instead of using filemtime
PHPBB3-14496
This commit is contained in:
parent
6e4ab6509b
commit
b6cf2d7284
1 changed files with 2 additions and 1 deletions
|
@ -355,7 +355,7 @@ class install_update extends module
|
|||
|
||||
// We are directly within an update. To make sure our update list is correct we check its status.
|
||||
$update_list = ($request->variable('check_again', false, false, \phpbb\request\request_interface::POST)) ? false : $cache->get('_update_list');
|
||||
$modified = ($update_list !== false) ? @filemtime($cache->get_driver()->cache_dir . 'data_update_list.' . $phpEx) : 0;
|
||||
$modified = ($update_list !== false) ? $cache->get('_update_list_time') : 0;
|
||||
|
||||
// Make sure the list is up-to-date
|
||||
if ($update_list !== false)
|
||||
|
@ -384,6 +384,7 @@ class install_update extends module
|
|||
{
|
||||
$this->get_update_structure($update_list, $expected_files);
|
||||
$cache->put('_update_list', $update_list);
|
||||
$cache->put('_update_list_time', time());
|
||||
|
||||
// Refresh the page if we are still not finished...
|
||||
if ($update_list['status'] != -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue