public static void RefreshCreators() { XDocument doc = XDocument.Load(CreatorsUrl); CreatorInfoCollection creators = new CreatorInfoCollection(doc.Element("creators").Elements("creatorInfo")); ZCache.InsertCache(CreatorsCacheKey, creators, CacheTime); }
public void RefreshCreators() { CreatorInfoCollection creators = new CreatorInfoCollection(); foreach (ItemInfo item in Items.Values) { if (!creators.ContainsKey(item.CreatorId)) { creators.Add(item.CreatorId, item.Creator); } } ZCache.InsertCache(CreatorCacheKey, creators, Marketplace.CacheTime); }