Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Created July 10, 2015 08:15
Show Gist options
  • Save josefglatz/e01ccfc2d022736414a8 to your computer and use it in GitHub Desktop.
Save josefglatz/e01ccfc2d022736414a8 to your computer and use it in GitHub Desktop.
TYPO3 6.2 RealUrl Autoconf Hook Example disable RealUrl Caches
<?php
namespace O10\Theme\Configuration;
/**
* $DESCRIPTION$
*
* @author Josef Glatz <[email protected]>
* @package $PACKAGE$
* @subpackage $SUBPACKAGE$
*/
class Realurl {
public function autoconf($params, \tx_realurl_autoconfgen &$pObj) {
$customChanges = array(
'init' => array(
'enableCHashCache' => 0,
'enableUrlDecodeCache' => 0,
'enableUrlEncodeCache' => 0
),
'pagePath' => array(
'disablePathCache' => TRUE,
)
);
return array_replace_recursive($params['config'], $customChanges);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment