/** * Loads the group cache. */ protected static function getCache() { if (self::$cache === null) { self::$cache = UserGroupCacheBuilder::getInstance()->getData(); } }
/** * Loads the group cache. */ protected static function getCache() { if (self::$cache === null) { CacheHandler::getInstance()->addResource('usergroups', WCF_DIR . 'cache/cache.usergroups.php', 'wcf\\system\\cache\\builder\\UserGroupCacheBuilder'); self::$cache = CacheHandler::getInstance()->get('usergroups'); } }