문제

I'm looking to set views dependent on cached objects so that when they are expired or explicitly removed from cache the cached result is immediately expired so that there is no chance the outdated HTML is rendered.

For that, I'll be using:

this.Response.AddCacheItemDependencies(myCacheKeysArray);

Is it guaranteed that the outdated action result will never be returned?

올바른 솔루션이 없습니다

다른 팁

The answer is no. It takes a long a while before the action result outputcached is expired. On my computer 15 seconds but this will probably vary on certain factors like machine and available resources.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top