/** * Force the enable state of the cache and flush it. * * @param void * @return void */ public function setUp() { parent::setUp(); //TODO get rid of the extConf push/pop stuff $this->oldExtConfSetting = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['languagevisibility']; $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['languagevisibility'] = serialize(array('useCache' => 1)); tx_languagevisibility_cacheManager::enableCache(); tx_languagevisibility_cacheManager::getInstance()->flushAllCaches(); }
/** * Use this method to unforce the cache usage. * * @return void */ public static function disableCache() { self::$enableCache = false; }