1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 15:05:43 +02:00

Merge pull request #4280 from Nicofuma/ticket/14198

[ticket/14198] Use the build option to calculate the container cache filename
This commit is contained in:
Marc Alexander 2016-04-06 21:00:36 +02:00
commit c53eae7abc

View File

@ -556,7 +556,13 @@ class container_builder
*/
protected function get_container_filename()
{
return $this->get_cache_dir() . 'container_' . md5($this->phpbb_root_path) . '.' . $this->php_ext;
$container_params = [
'phpbb_root_path' => $this->phpbb_root_path,
'use_extensions' => $this->use_extensions,
'config_path' => $this->config_path,
];
return $this->get_cache_dir() . 'container_' . md5(implode(',', $container_params)) . '.' . $this->php_ext;
}
/**
@ -566,7 +572,13 @@ class container_builder
*/
protected function get_autoload_filename()
{
return $this->get_cache_dir() . 'autoload_' . md5($this->phpbb_root_path) . '.' . $this->php_ext;
$container_params = [
'phpbb_root_path' => $this->phpbb_root_path,
'use_extensions' => $this->use_extensions,
'config_path' => $this->config_path,
];
return $this->get_cache_dir() . 'autoload_' . md5(implode(',', $container_params)) . '.' . $this->php_ext;
}
/**