mvcdonutcaching | NET MVC Extensible Donut Caching brings donut | Caching library
kandi X-RAY | mvcdonutcaching Summary
kandi X-RAY | mvcdonutcaching Summary
ASP.NET MVC Extensible Donut Caching brings donut caching to ASP.NET MVC 3 and later. The code allows you to cache all of your page apart from one or more Html.Actions which can be executed every request. Perfect for user specific content.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mvcdonutcaching
mvcdonutcaching Key Features
mvcdonutcaching Examples and Code Snippets
Community Discussions
Trending Discussions on mvcdonutcaching
QUESTION
For performance purposes, I need to cache the results of the homepage action, while allowing the display name of the logged-in user to remain uncached.
I used to achieve something similar on ASP.NET MVC Framework projects using DonutOutputCache. This system was very useful because you were able to put an entire action into the output cache while maintaining partial view results outside of the cache. I could thus have three or four partials who needed personalization—e.g., a survey, an analytic tag, the user name and avatar, a behavior based article list, etc.).
Do you know if I could handle this with ASP.NET Core's new [OutputCache]
attribute or Tag Helper?
At the moment, I put the whole home page into a classic memory cache. It would be fantastic to have this kind of Tag Helper:
...ANSWER
Answered 2018-Nov-21 at 14:10I'm not sure about what you were using previously, but I don't think it was actually doing what you think. The whole point of an output cache is bypassing the view rendering process, as such, whatever you cache is just returned as-is, not further processed to determine if something inside needs to be rendered.
If you cache your entire page, then you cannot have any part inside that needs to vary per user. You'll simply need to reduce the scope of what you're caching. Cache the parts of the page that don't vary, and that will at least give the main page a leg up in rendering. This is what the cache
tag helper is for. You can also cache just for a particular user with this tag helper:
QUESTION
I have the following custom Redis output cache:
...ANSWER
Answered 2019-May-30 at 16:09Ok the reason why the getType
was returning null is because the nuget package is done in .net4 and the project using it was .net4.6.1 and therefore the nuget package was unable to get the type because the class was incompatible. As I had the source, I was able to create a custom redis provider in the source solution and just point my project and web config at the updated output
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mvcdonutcaching
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page