Project

General

Profile

Actions

Bug #21994

closed

Defining new cache backend in extension must use absolut path

Added by Christian Kuhn almost 15 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2010-01-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Loading a new cache Backend from an extension doesn't parse the common 'EXT:' syntax, the backend must be defined with an absolute path from document root:

$TYPO3_CONF_VARS['SYS']['caching']['cacheBackends']['happynewbackend'] = 'typo3conf/ext/extname/class.php:classname'

Should:
$TYPO3_CONF_VARS['SYS']['caching']['cacheBackends']['happynewbackend'] = 'EXT:extname/class.php:classame'

Reason is class.t3lib_cache_factory.php which does a explode by colon before getting the path via t3lib_div::getFileAbsFileName.

(issue imported from #M13304)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #21550: Make EXT: syntax consistent in coreClosed2009-11-14

Actions
Related to TYPO3 Core - Bug #22270: Hardcoded typo3_src Folder in TestCase tests/t3lib/cache/t3lib_cache_factoryTest.phpClosedSteffen Kamper2010-03-11

Actions
Related to TYPO3 Core - Feature #23473: Unecessary require_once in t3lib_cache_FactoryClosedSteffen Kamper2010-08-28

Actions
Actions

Also available in: Atom PDF