Bug #20179 ยป 10689.diff
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php (working copy) | ||
---|---|---|
*/
|
||
protected $cacheDirectory = '';
|
||
protected $root = '/';
|
||
|
||
/**
|
||
* Constructs this backend
|
||
*
|
||
... | ... | |
*/
|
||
public function __construct(array $options = array()) {
|
||
parent::__construct($options);
|
||
if (TYPO3_OS === 'WIN') {
|
||
$this->root = '';
|
||
}
|
||
if (empty($this->cacheDirectory)) {
|
||
$cacheDirectory = 'typo3temp/cache/';
|
||
try {
|
||
... | ... | |
if (!is_writable($cacheEntryPath)) {
|
||
try {
|
||
t3lib_div::mkdir_deep(
|
||
'/',
|
||
$this->root,
|
||
$cacheEntryPath
|
||
);
|
||
} catch(Exception $exception) {
|
||
... | ... | |
if (!is_writable($tagPath)) {
|
||
t3lib_div::mkdir_deep(
|
||
'/',
|
||
$this->root,
|
||
$tagPath
|
||
);
|
||
}
|