更多»
只看楼主 大 中 小 楼主
理改模板内容,缓存什么时候更新呀。
IP:59.*.*.* TOP
只看该用户 大 中 小 沙发
Re:理改模板内容,缓存什么时候更新呀。
只看该用户 大 中 小 板凳
IP:125.*.*.* TOP
只看该用户 大 中 小 地板
/// <summary> /// 文件缓存依赖项 /// </summary> /// <param name="virtualPath"></param> /// <param name="virtualPathDependencies"></param> /// <param name="utcStart"></param> /// <returns></returns> public override System.Web.Caching.CacheDependency GetCacheDependency(string virtualPath, System.Collections.IEnumerable virtualPathDependencies, DateTime utcStart) { if (virtualPathDependencies == null) { return null ; } System.Collections.Specialized.StringCollection fullPathDependencies = null; //获得当前所有依赖 foreach (string virtualDependency in virtualPathDependencies) { if (fullPathDependencies == null) fullPathDependencies = new System.Collections.Specialized.StringCollection(); string fileName = virtualDependency.Substring(CurrentContext.ThemeVirtualPath.Length + 1).Replace("/","\\"); fullPathDependencies.Add(CurrentContext.ThemePhysicalPath + "\\" + fileName); } string[] fullPathDependenciesArray = new string[fullPathDependencies.Count]; fullPathDependencies.CopyTo(fullPathDependenciesArray, 0); return new CacheDependency(fullPathDependenciesArray); }
IP:218.*.*.* TOP
只看该用户 大 中 小 #4
放大 缩小 原始大小 原始推荐大小 新窗口打开 关闭
X close