I have html fragments in a partial view that uses the output cache this way
<cache vary-by="@Util.SomeID" expires-after="@TimeSpan.FromHours(1)"> <div>some content</div> </cache>
If it is necessary to update the contents before the cache expires, how can I intercept the cache for this particular fragment (or, if necessary, the entire cache)?
I am using ASP.NET 5 and MVC 6 ..
Thank!
There is IMemoryCacheno way to clear the cache in the interface . Otherwise, you can enter it IMemoryCacheon your controller or where you need it and call the method.
IMemoryCache
aspnet .
CacheManager MVC Core , , , , ...
ASP.NET , . "" -.
, . .
https://github.com/aspnet/Mvc/issues/4117#issuecomment-187298466
Source: https://habr.com/ru/post/1629422/More articles:validation for nans with intrinsics in C ++ - c ++Matplotlib, Pandas, label errors on pie chart diagram - pythonThe cryptic publishing order from a restricted data stream to pub / sub - google-cloud-platformHow to measure the performance of an angular application? - performanceMultithreaded behavior of volatile variable of java variable - javaInternet Connection Error Jellybean WebviewClient SSL - androidLack of access to external SQL database from CRM module during debugging - debuggingDeleting files after they are created - c #use of reagents in reagent - clojurescriptIs there an infrastructure like Loopback or Sails.js for ASP.NET? - asp.netAll Articles