aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convert
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2016-02-11 13:18:30 +0100
committerMate Bartus <mate.bartus@gmail.com>2016-02-12 14:31:28 +0100
commit955b9ede33c5696173a760ea271ec32d79e843b9 (patch)
treeeaff0198ca89ed5b6d76ee56b797a105837226d2 /phpBB/install/convert
parent0210a6298d9dd39ddb15a1e0b8f49f7821cd460f (diff)
downloadforums-955b9ede33c5696173a760ea271ec32d79e843b9.tar
forums-955b9ede33c5696173a760ea271ec32d79e843b9.tar.gz
forums-955b9ede33c5696173a760ea271ec32d79e843b9.tar.bz2
forums-955b9ede33c5696173a760ea271ec32d79e843b9.tar.xz
forums-955b9ede33c5696173a760ea271ec32d79e843b9.zip
[ticket/14462] Further speed improvements
- Cache the secondary container - Only initialize tasks/modules that are being used - Add timeout error message in the AJAX UI PHPBB3-14462
Diffstat (limited to 'phpBB/install/convert')
-rw-r--r--phpBB/install/convert/controller/convertor.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/install/convert/controller/convertor.php b/phpBB/install/convert/controller/convertor.php
index a36494c7e6..9b52fdda32 100644
--- a/phpBB/install/convert/controller/convertor.php
+++ b/phpBB/install/convert/controller/convertor.php
@@ -13,6 +13,7 @@
namespace phpbb\convert\controller;
+use phpbb\cache\driver\driver_interface;
use phpbb\exception\http_exception;
use phpbb\install\controller\helper;
use phpbb\install\helper\container_factory;
@@ -36,11 +37,16 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
class convertor
{
/**
- * @var \phpbb\cache\driver\driver_interface
+ * @var driver_interface
*/
protected $cache;
/**
+ * @var driver_interface
+ */
+ protected $installer_cache;
+
+ /**
* @var \phpbb\config\db
*/
protected $config;
@@ -123,6 +129,7 @@ class convertor
/**
* Constructor
*
+ * @param driver_interface $cache
* @param container_factory $container
* @param database $db_helper
* @param helper $controller_helper
@@ -135,8 +142,9 @@ class convertor
* @param string $phpbb_root_path
* @param string $php_ext
*/
- public function __construct(container_factory $container, database $db_helper, helper $controller_helper, install_helper $install_helper, factory $iohandler, language $language, navigation_provider $nav, request_interface $request, template $template, $phpbb_root_path, $php_ext)
+ public function __construct(driver_interface $cache, container_factory $container, database $db_helper, helper $controller_helper, install_helper $install_helper, factory $iohandler, language $language, navigation_provider $nav, request_interface $request, template $template, $phpbb_root_path, $php_ext)
{
+ $this->installer_cache = $cache;
$this->controller_helper = $controller_helper;
$this->db_helper = $db_helper;
$this->install_helper = $install_helper;
@@ -379,6 +387,7 @@ class convertor
// If we reached this step (conversion completed) we want to purge the cache and log the user out.
// This is for making sure the session get not screwed due to the 3.0.x users table being completely new.
$this->cache->purge();
+ $this->installer_cache->purge();
require_once($this->phpbb_root_path . 'includes/constants.' . $this->php_ext);
require_once($this->phpbb_root_path . 'includes/functions_convert.' . $this->php_ext);