/** * * @return boolean */ public function execute() { $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['jh_browscap']); if (isset($extConf['cachePath']) && preg_match('/^typo3temp\\//', $extConf['cachePath'])) { $this->cachePath = rtrim($extConf['cachePath'], '/'); } if (!is_dir(PATH_site . $this->cachePath)) { GeneralUtility::mkdir_deep(PATH_site, $this->cachePath); } /** @var Browscap $browscap */ $browscap = new Browscap(PATH_site . $this->cachePath); return $browscap->updateCache(); }