Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2020-03-01 18:51:50 +01:00
commit 077db87f53
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -137,13 +137,14 @@ class container_builder
{
try
{
$container_filename = $this->get_container_filename();
$config_cache = new ConfigCache($container_filename, defined('DEBUG'));
if ($this->use_cache && $config_cache->isFresh())
$build_container = true;
if ($this->use_cache)
{
if ($this->use_extensions)
{
$autoload_cache = new ConfigCache($this->get_autoload_filename(), defined('DEBUG'));
if (!$autoload_cache->isFresh())
{
// autoload cache should be refreshed
@ -153,10 +154,18 @@ class container_builder
require($this->get_autoload_filename());
}
require($config_cache->getPath());
$this->container = new \phpbb_cache_container();
$container_filename = $this->get_container_filename();
$config_cache = new ConfigCache($container_filename, defined('DEBUG'));
if ($config_cache->isFresh())
{
require($config_cache->getPath());
$this->container = new \phpbb_cache_container();
$build_container = false;
}
}
else
if ($build_container)
{
$this->container_extensions = [
new extension\core($this->get_config_path()),