mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12620] Uses a cache directory per environment
PHPBB3-12620
This commit is contained in:
7
phpBB/phpbb/cache/driver/file.php
vendored
7
phpBB/phpbb/cache/driver/file.php
vendored
@@ -28,7 +28,12 @@ class file extends \phpbb\cache\driver\base
|
||||
function __construct($cache_dir = null)
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
$this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_root_path . 'cache/';
|
||||
$this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT . '/';
|
||||
|
||||
if (!is_dir($this->cache_dir))
|
||||
{
|
||||
@mkdir($this->cache_dir, 0777, true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user