private string GetContentValue(bool ignoreCache, string LangCode) { string cacheKey = string.Format("{0}_{1}_{2}", communityId, ContentId, LangCode); string stringContent = Cache[cacheKey] as string; if (stringContent == null || ignoreCache) { stringContent = string.Empty; CSBooster_DataContext csb = new CSBooster_DataContext(Helper.GetSiemeConnectionString()); var content = csb.hisp_Content_GetContent(communityId, ContentId, LangCode).SingleOrDefault(); if (content != null) { stringContent = content.Content; Cache.Insert(cacheKey, stringContent); } } return(stringContent); }