Esempio n. 1
0
 private void LoadContentStore(IRepository repo)
 {
     if (HttpContext.RequestCache.ContainsKey(REPO_CACHE_STORE + repo.Id))
     {
         contentStore = HttpContext.RequestCache[REPO_CACHE_STORE + repo.Id] as IContentStore;
     }
     else
     {
         contentStore = manager.GetContentStore(repo.Id);
         HttpContext.RequestCache[REPO_CACHE_STORE + repo.Id] = contentStore;
         Tools.Cacher.Set(MANAGER_CACHE_KEY, manager, CmsManager.GetContentStoreFilename(repo.Id));
     }
 }