Is outputcached action result expired *immediately* after the dependency breaks?

StackOverflow https://stackoverflow.com/questions/11803390

  •  24-06-2021
  •  | 
  •  

سؤال

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