mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 22:41:28 +02:00
[ticket/15678] Fix build and cache flow for container
1. During procedure of building container we have to check both required files in cache: container_* and autoload_*. This files should be "fresh" and if one of the does not exist then we have to build it and put into a cache one more time. 2. Fix typo 'posic_getuid' does not exist, so $php_uid is alwasy was false. PHPBB3-15678
This commit is contained in:
@@ -143,6 +143,13 @@ class container_builder
|
||||
{
|
||||
if ($this->use_extensions)
|
||||
{
|
||||
$autoload_cache = new ConfigCache($this->get_autoload_filename(), defined('DEBUG'));
|
||||
if (!$autoload_cache->isFresh())
|
||||
{
|
||||
// autoload cache should be refreshed
|
||||
$this->load_extensions();
|
||||
}
|
||||
|
||||
require($this->get_autoload_filename());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user