/** * @see \wcf\system\SingletonFactory::init() */ protected function init() { // get smiley cache $this->cachedSmilies = SmileyCacheBuilder::getInstance()->getData(array(), 'smilies'); $smileyCategories = CategoryHandler::getInstance()->getCategories('com.woltlab.wcf.bbcode.smiley'); $this->cachedCategories[null] = new SmileyCategory(new Category(null, array('categoryID' => null, 'parentCategoryID' => 0, 'title' => 'wcf.acp.smiley.categoryID.default', 'description' => '', 'showOrder' => -1, 'isDisabled' => 0))); foreach ($smileyCategories as $key => $smileyCategory) { $this->cachedCategories[$key] = new SmileyCategory($smileyCategory); } }
/** * @see \wcf\system\category\ICategoryType::afterDeletion() */ public function afterDeletion(CategoryEditor $categoryEditor) { SmileyCacheBuilder::getInstance()->reset(); }
/** * @see \wcf\data\IEditableCachedObject::resetCache() */ public static function resetCache() { SmileyCacheBuilder::getInstance()->reset(); }