我有一個虛擬路徑提供程序。問題是它緩存我的文件。無論何時我手動編輯其中一個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