private ResourceInfo GetWebResources() { if (_cache.Contains(RESOURCEINFOKEY)) { return(_cache.Get(RESOURCEINFOKEY) as ResourceInfo); } string physicalDir = Path.Combine(System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath, "bin"); var result = new ResourceInfo(); result.FillInfo(physicalDir, Assembly.GetExecutingAssembly().Location, Constants.i18n("web")); var timeout = Functions.GetSettingInt("versionInfoCacheTime", 24); _cache.Add(new CacheItem(RESOURCEINFOKEY, result), new CacheItemPolicy() { AbsoluteExpiration = DateTimeOffset.Now.AddHours(timeout) }); return(result); }