mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-14 21:56:39 +02:00
[ticket/16368] Container isFresh check order
PHPBB3-16368
This commit is contained in:
@ -137,13 +137,14 @@ class container_builder
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$container_filename = $this->get_container_filename();
|
$build_container = true;
|
||||||
$config_cache = new ConfigCache($container_filename, defined('DEBUG'));
|
|
||||||
if ($this->use_cache && $config_cache->isFresh())
|
if ($this->use_cache)
|
||||||
{
|
{
|
||||||
if ($this->use_extensions)
|
if ($this->use_extensions)
|
||||||
{
|
{
|
||||||
$autoload_cache = new ConfigCache($this->get_autoload_filename(), defined('DEBUG'));
|
$autoload_cache = new ConfigCache($this->get_autoload_filename(), defined('DEBUG'));
|
||||||
|
|
||||||
if (!$autoload_cache->isFresh())
|
if (!$autoload_cache->isFresh())
|
||||||
{
|
{
|
||||||
// autoload cache should be refreshed
|
// autoload cache should be refreshed
|
||||||
@ -153,10 +154,18 @@ class container_builder
|
|||||||
require($this->get_autoload_filename());
|
require($this->get_autoload_filename());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$container_filename = $this->get_container_filename();
|
||||||
|
$config_cache = new ConfigCache($container_filename, defined('DEBUG'));
|
||||||
|
|
||||||
|
if ($config_cache->isFresh())
|
||||||
|
{
|
||||||
require($config_cache->getPath());
|
require($config_cache->getPath());
|
||||||
$this->container = new \phpbb_cache_container();
|
$this->container = new \phpbb_cache_container();
|
||||||
|
$build_container = false;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
|
|
||||||
|
if ($build_container)
|
||||||
{
|
{
|
||||||
$this->container_extensions = [
|
$this->container_extensions = [
|
||||||
new extension\core($this->get_config_path()),
|
new extension\core($this->get_config_path()),
|
||||||
|
Reference in New Issue
Block a user