[TYPO3-english] CF my backend
Tomasz Krawczyk
tomkrawc at gmail.com
Sat Oct 20 10:56:26 CEST 2012
Hi list!
I'm writing an extension which adds my own caching backend. Backend uses
WinCache. Best opcode cacher for IIS.
I added it in ext_autoload.php
<?php
$extensionPath = t3lib_extMgm::extPath('wincache');
return array(
'tx_wincache_cache_backend_WinCacheBackend' => $extensionPath .
'classes/class.tx_wincache_cache_backend_wincachebackend.php',
);
?>
and ext_localconf.php.
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$extensionPath = t3lib_extMgm::extPath('wincache');
$TYPO3_CONF_VARS['SYS']['caching']['cacheBackends']['tx_wincache_cache_backend_WinCacheBackend']
=
'typo3conf/ext/wincache/classes/class.tx_wincache_cache_backend_wincachebackend.php:tx_wincache_cache_backend_WinCacheBackend';
?>
In my localconf.php I added useCachingFramework = 1 and pointed CF to
use my backend. It looked all works with debugging options turned on but
when I disabled debugging options I got such errors.
[20-Oct-2012 08:37:14 UTC] PHP Fatal error: Uncaught exception
'ReflectionException' with message 'Class does not exist' in
D:\InetPub\typo3_src-4.5.19\t3lib\class.t3lib_div.php:5369
Stack trace:
#0 D:\InetPub\typo3_src-4.5.19\t3lib\class.t3lib_div.php(5369):
ReflectionClass->__construct('')
#1
D:\InetPub\mysite\typo3_src\t3lib\cache\class.t3lib_cache_factory.php(92):
t3lib_div::makeInstance(NULL, Array)
#2 D:\InetPub\mysite\typo3_src\t3lib\class.t3lib_cache.php(67):
t3lib_cache_Factory->create('cache_pages', 't3lib_cache_fro...',
'tx_wincache_cac...', Array)
#3
D:\InetPub\mysite\typo3_src\typo3\sysext\cms\tslib\class.tslib_fe.php(598):
t3lib_cache::initPageCache()
#4
D:\InetPub\mysite\typo3_src\typo3\sysext\cms\tslib\class.tslib_fe.php(466):
tslib_fe->initCaches()
#5 [internal function]: tslib_fe->tslib_fe(Array, NULL, NULL, NULL,
'6958d6fbdc1475d...', NULL, NULL, NULL)
#6 D:\InetPub\typo3_src-4.5.19\t3lib\class.t3lib_div.php(5370):
ReflectionClass->newInstanceArgs(Array)
#7 D:\InetPub\mysite\typo3_src\typo3\sysext\cms\tslib\index_t in
D:\InetPub\typo3_src-4.5.19\t3lib\class.t3lib_div.php on line 5369
Does anyone know what is wrong?
cheers
Tomek
More information about the TYPO3-english
mailing list