Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abstract controller class derived as regular controllers in two different areas hits same cache #59

Open
kavhad opened this issue Sep 20, 2016 · 0 comments

Comments

@kavhad
Copy link

kavhad commented Sep 20, 2016

public abstract class AbstractProtocolController : Controller {
        ...
        [DonutOutputCache(Duration = 300, VaryByParam = "id", Location = OutputCacheLocation.Server)] 
        public ActionResult Detail(int id)
        {
             ...
        }
        ...
}

This abstract controller class is implemented in two concrete classes in separate areas.
When I do a web request to the action in the first area and then to the other action in the second area the view from the first area is served from cache. A note the concrete classes have the same controllername, but this shouldn't be an issue since they are still in two different areas.

I have only tested this out with the current pre-release version on NuGet (MvcDonutCaching 1.3.1-rc1).

@kavhad kavhad changed the title abstract controller class derived as regular controllers in two DIFFERENT areas hits same cache abstract controller class derived as regular controllers in two different areas hits same cache Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant