Exemple #1
0
 /**
  * Loads the group cache.
  */
 protected static function getCache()
 {
     if (self::$cache === null) {
         self::$cache = UserGroupCacheBuilder::getInstance()->getData();
     }
 }
Exemple #2
0
 /**
  * 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');
     }
 }