diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2016-02-11 13:18:30 +0100 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2016-02-12 14:31:28 +0100 |
commit | 955b9ede33c5696173a760ea271ec32d79e843b9 (patch) | |
tree | eaff0198ca89ed5b6d76ee56b797a105837226d2 /phpBB/phpbb/install/helper/container_factory.php | |
parent | 0210a6298d9dd39ddb15a1e0b8f49f7821cd460f (diff) | |
download | forums-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/phpbb/install/helper/container_factory.php')
-rw-r--r-- | phpBB/phpbb/install/helper/container_factory.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/phpBB/phpbb/install/helper/container_factory.php b/phpBB/phpbb/install/helper/container_factory.php index 6c1ecd2d02..5cf4f8a283 100644 --- a/phpBB/phpbb/install/helper/container_factory.php +++ b/phpBB/phpbb/install/helper/container_factory.php @@ -13,7 +13,6 @@ namespace phpbb\install\helper; -use phpbb\cache\driver\dummy; use phpbb\install\exception\cannot_build_container_exception; use phpbb\language\language; use phpbb\request\request; @@ -157,25 +156,20 @@ class container_factory ->with_environment('production') ->with_config($phpbb_config_php_file) ->with_config_path($config_path) - ->without_cache() ->without_compiled_container() ->get_container(); // Setting request is required for the compatibility globals as those are generated from // this container - $this->container->register('request')->setSynthetic(true); - $this->container->set('request', $this->request); - - $this->container->register('language')->setSynthetic(true); - $this->container->set('language', $this->language); - - // Replace cache service, as config gets cached, and we don't want that when we are installing - if (!is_dir($other_config_path)) + if (!$this->container->isFrozen()) { - $this->container->register('cache.driver')->setSynthetic(true); - $this->container->set('cache.driver', new dummy()); + $this->container->register('request')->setSynthetic(true); + $this->container->register('language')->setSynthetic(true); } + $this->container->set('request', $this->request); + $this->container->set('language', $this->language); + $this->container->compile(); $phpbb_container = $this->container; |