diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-23 22:48:58 +0100 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-24 09:15:34 +0100 |
| commit | 56c2caf6c0778c0da48fe0ac688c893777b89ee4 (patch) | |
| tree | 2ed7f9cf6a26d0ea7b3f7bac255c777e36754b7c /phpBB/phpbb/cache | |
| parent | eca4726f3c2fda312b3150b7b252a300d4603fbe (diff) | |
| download | forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.gz forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.bz2 forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.xz forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.zip | |
[ticket/14555] Uniformize cache directory usages
PHPBB3-14555
Diffstat (limited to 'phpBB/phpbb/cache')
| -rw-r--r-- | phpBB/phpbb/cache/driver/file.php | 4 | ||||
| -rw-r--r-- | phpBB/phpbb/cache/driver/memory.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index d994394249..a210d877f0 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -32,9 +32,9 @@ class file extends \phpbb\cache\driver\base */ function __construct($cache_dir = null) { - global $phpbb_root_path, $phpbb_container; + global $phpbb_container; - $this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_root_path . 'cache/' . $phpbb_container->getParameter('core.environment') . '/'; + $this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_container->getParameter('core.cache_dir'); $this->filesystem = new \phpbb\filesystem\filesystem(); if (!is_dir($this->cache_dir)) diff --git a/phpBB/phpbb/cache/driver/memory.php b/phpBB/phpbb/cache/driver/memory.php index baae22d809..cc03804705 100644 --- a/phpBB/phpbb/cache/driver/memory.php +++ b/phpBB/phpbb/cache/driver/memory.php @@ -25,9 +25,9 @@ abstract class memory extends \phpbb\cache\driver\base */ function __construct() { - global $phpbb_root_path, $dbname, $table_prefix; + global $phpbb_root_path, $dbname, $table_prefix, $phpbb_container; - $this->cache_dir = $phpbb_root_path . 'cache/'; + $this->cache_dir = $phpbb_container->getParameter('core.cache_dir'); $this->key_prefix = substr(md5($dbname . $table_prefix), 0, 8) . '_'; if (!isset($this->extension) || !extension_loaded($this->extension)) |
