Comments (10)
We need more details to investigate on this issue.
from mvcdonutcaching.
We are experiencing the same. For now I can only add that we see that if you refresh the page the problem disappears. Maybe we are experiencing a different bug, but seems to me it's related. I try to get some more details. We are using the library in a webfarm like environment where we have set the machinekey to be the same on all the machines.
from mvcdonutcaching.
I couldn't reproduce this, but after looking at the code it might be a threading issue.
In the ExecuteCallback (which is stored in the HttpContext), the library uses a variable "cachingWriter" which is set as the output writer before the result is executed. The code results in a closure.
Now I don't know how .NET compiles closures, but could it perhaps be that if one thread calls the cachingWriter.toString() and another thread just created a new cachingWriter, the first call results in a empty string as it is a new StringWriter?
from mvcdonutcaching.
I don't what to answer actually, in normal conditions ASP.NET MVC handles each request on a separate thread and sticks to it. If it's not the case, I clearly don't know what to do.
from mvcdonutcaching.
I'm guessing in this case, that this project won't work when using Async Controllers in MVC4 onwards?
http://www.codeguru.com/csharp/.net/net_asp/mvc/creating-asynchronous-actions-in-asp.net-mvc.htm
from mvcdonutcaching.
We don't have any update on this, we have projects using async controllers in production, who, of course make use of MvcDonutCaching with no problem.
Added that, since MVC4 all controller internal infrastructure is async by default.
from mvcdonutcaching.
Fantastic :) This is an excellent project.
from mvcdonutcaching.
Actually we have similar issue - sometimes is page just empty.
Should we rewrite controller actions to async, or why @leen3o mention it?
from mvcdonutcaching.
I had it too. Running on azure. Problem is, the status code is still OK, so my monitors dont alert me...
from mvcdonutcaching.
In my case I found that removing this line fixed my issue,
"ControllerContext.RequestContext.RouteData.Values.Remove(value.Key);"
there should be some problems removing values from ControllerContext.RequestContext.RouteData that cause that the page become a blank page without throwing any error.
PD: If you add the removed value after removing it, that also fix the issue, like this
ControllerContext.RequestContext.RouteData.Values.Add(value.Key, value.Value);
from mvcdonutcaching.
Related Issues (20)
- help,if custom RouteConfig,the 'area' parameter not work in asp.net mvc HOT 5
- Sometimes application cache throws System.Web.HttpException HOT 2
- Clear cache with return View doesn't work HOT 1
- FileResult getting corrupted
- Server crash on creating cache item
- MvcDonutCaching doesn't work on ChildActions? HOT 5
- Cache expiry policy
- Missing null check in KeyGenerator.cs HOT 2
- Not working with route attribute
- abstract controller class derived as regular controllers in two different areas hits same cache
- Filtering is not allowed. While implementing Donut Caching.
- getting "Object reference not set to an instance of an object" while generating a key HOT 1
- cache only non-authenticated pages HOT 2
- Serialization error when trying to pass model object to child action using action method extension of Donutcache HOT 1
- unnecessary Comments were adding HOT 2
- Order of route values shouldn't impact key built HOT 1
- Can i change input database of mvcdonutcaching?
- RemoveItems does not pass routeValues to build the key causing RemoveItems to fail
- Cache profile Server, but still different results on different browsers/machines
- Asp.net Core Support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvcdonutcaching.