aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_update.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-25 12:25:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-26 12:07:35 +0100
commitb6cf2d7284b62c263d563995c3edecf9e8d88ca7 (patch)
tree5836219e3c9f0e5a6ff6ae0573ceb7f28dac49c9 /phpBB/install/install_update.php
parent6e4ab6509b38f03daa2fb2af30df61423b126bdf (diff)
downloadforums-b6cf2d7284b62c263d563995c3edecf9e8d88ca7.tar
forums-b6cf2d7284b62c263d563995c3edecf9e8d88ca7.tar.gz
forums-b6cf2d7284b62c263d563995c3edecf9e8d88ca7.tar.bz2
forums-b6cf2d7284b62c263d563995c3edecf9e8d88ca7.tar.xz
forums-b6cf2d7284b62c263d563995c3edecf9e8d88ca7.zip
[ticket/14496] Cache last update of update list instead of using filemtime
PHPBB3-14496
Diffstat (limited to 'phpBB/install/install_update.php')
-rw-r--r--phpBB/install/install_update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php
index 82ca0fc18d..ba054d1747 100644
--- a/phpBB/install/install_update.php
+++ b/phpBB/install/install_update.php
@@ -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)