1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13700] Add method for initializing config after cache purge

PHPBB3-13700
This commit is contained in:
Marc Alexander
2021-04-03 22:31:51 +02:00
parent 7d48254cc9
commit 574de287e7
2 changed files with 12 additions and 1 deletions

View File

@@ -49,6 +49,13 @@ class db extends \phpbb\config\config
$this->cache = $cache;
$this->table = $table;
$this->initialise($cache);
parent::__construct($this->config);
}
public function initialise(\phpbb\cache\driver\driver_interface $cache)
{
if (($config = $cache->get('config')) !== false)
{
$sql = 'SELECT config_name, config_value
@@ -84,7 +91,7 @@ class db extends \phpbb\config\config
$cache->put('config', $cached_config);
}
parent::__construct($config);
$this->config = $config;
}
/**