mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14198] Use the build option to calculate the container cache filename
PHPBB3-14198
This commit is contained in:
parent
a319d58d03
commit
7bf8006b67
1 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue