Skip to content

Instantly share code, notes, and snippets.

@htuscher
Last active August 29, 2015 14:09
Show Gist options
  • Save htuscher/2acb908186671ab3c7f9 to your computer and use it in GitHub Desktop.
Save htuscher/2acb908186671ab3c7f9 to your computer and use it in GitHub Desktop.
Disable L10n Cache in TYPO3 6.2 using config files
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['restrictfe']['enable'] = TRUE;
/**
* !!! IMPORTANT !!!
*
* To enable your local configuration add
* one or more files in conf.d as they are
* loaded automatically.
*/
$configurationFiles = GeneralUtility::getFilesInDir(GeneralUtility::getFileAbsFileName('typo3conf/conf.d/'), 'php', TRUE);
foreach ($configurationFiles as $file) {
require_once($file);
}
<?php
/*
* Place this file in typo3conf/conf.d/ and make the folder conf.d be ignored by git
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['l10n']['backend'] = '\\TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment