我有一个虚拟路径提供程序。问题是它缓存我的文件。无论何时我手动编辑其中一个aspx文件,它引用的VPP都不会引入新文件,它会继续重新使用旧文件,直到我重新启动该网站。虚拟路径提供程序禁用缓存?
我甚至在我的VirtualPathProvider类过度骑着GetCacheDependency():
public override CacheDependency GetCacheDependency(string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)
{
return null;
}
想法?
更进一步的正确答案/ Chandima Prematillake – r3mark 2013-06-11 04:33:24