Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8843251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:10:27+00:00 2026-06-14T11:10:27+00:00

My question is similar to this one , but my issue is with Windows

  • 0

My question is similar to this one, but my issue is with Windows Azure Shared Caching — not the newer Windows Azure Caching.

It’s really a strange issue. I have a shared azure cache set up and working on one hosted cloud service. The app is using it for both sessionState and caching/outputCache. That app has no latency issues at all. It is deployed to North Central US, as is the shared cache.

I also have a second hosted service, which is also deployed to North Central US. I have configured this second app to use the same shared cache. Here’s what’s odd: When I configure the <caching>/<outputCache> section in the web.config to point it to the shared cache, every single (MVC4) web request slows down to about 5-6 seconds. When I comment out this web.config section, web requests are much faster (~100 milliseconds).

It doesn’t seem like a latency issue with the cache connection itself, because I am still using the same shared cache for sessionState, and that is fast. Also of note, none of the MVC4 actions are using the OutputCacheAttribute. The latency can be reproduced simply by adding the outputCache section to the web.config and redeploying.

Both apps are in the same datacenter regions, using the same vm sizes, instances, and osFamilies. The only difference between them that I can think of is that the first one (the one without latency issues) is an MVC3 app, whereas the second one is an MVC4 app.

Why would simply adding caching/outputCache config section pointed at Windows Azure Shared Cache slow down every single MVC4 request?

Update 1:

I am now able to reproduce this issue without deploying to azure. I set up my local VS / IIS Express install to use the shared cache in question for both session and outputCache. I was getting sub second responses until I changed this web.config setting:

<compilation debug="false" ... <!-- changed this from true to false

When turning off the debug hooks in the system.web section, I started getting response times of 5-6 seconds (reproduced). Could this be an issue with the bundling and minification features in MVC4? VERY odd that turning off debug compilation increases response latency ~10 fold…..

Update 2:

MiniProfiler is telling me that yes, over 4 seconds of this latency is coming from one of my @Scripts.Render(“~/bundles/mybundle”) in the MVC _Layout.cshtml. It appears that the outputCache setting in the web.config is affecting the release-mode rendering of bundled scripts. But WHY?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:10:28+00:00Added an answer on June 14, 2026 at 11:10 am

    The optimization framework currently does not support non default outputcache providers because in the past this would cause exceptions, so in those situations the server cache is disabled and that results in the high overhead you are seeing. I think now that we’ve move to VirtualPathProviders, the issues we were running into with non default providers might be fixed, and we might be able to support this scenario now.

    I filed a work item on our codeplex site to track this: Issue Link

    Update: This shoudl be fixed in https://nuget.org/packages/Microsoft.AspNet.Web.Optimization/1.1.0-Beta1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is similar to this one , but not a duplicate because I'm
My question is similar to this one but none of the answers solve my
my question is similar to this one , but I don't want to use
This question is similar to this one, but with an extra wrinkle: Auto-removing all
My question is similar to this one , but I would like to replicate
My question is similar to this one , but I can simplify it some.
The question is quite similar to this one , but I need to concentrate
My question popped up a very similar question, this one . But the accepted
I know there are questions similar to this one, but I've not found a
My question is similar to this one and I am having a similar issue,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.