Questions tagged [outputcache]

OutPut Cache is the caching technique to cache the static pages in ASP.NET.

680 questions
0
votes
0 answers

Orchard CMS 1.7 Orchard.OutputCache Module form redirects adds querystring, i have code for querystring suppression, but any down sides?

Regarding the Orchard 1.7 Orchard.OutputCache (version listed below). We have SEO releated need to suppress the querystring from being appended on a form redirect to a simple "thank you" page. The Cache module wants to append a QS but not sure…
0
votes
1 answer

ASP.Net OutputCache audit page visits

I have an internal corporate web application that has a page that hosts static content (things like announcements) and I decided to implement OutputCaching on this page to reduce the ammount of processing and db calls. The only problem is that I…
joe_coolish
  • 7,201
  • 13
  • 64
  • 111
0
votes
2 answers

ASP.NET MVC SqlDependency (CommandNotification?) with LINQ queries

I use LINQ queries in my ASP.NET MVC application and want to use OutputCache in some of my Actions. I hear this should be possible with CommandNotifications. But those seem to only go for self-created SQLCommands, or am I wrong? Can I manually tell…
sinni800
  • 1,451
  • 14
  • 29
0
votes
1 answer

The GetVaryByCustomString method is not fired

The GetVaryByCustomString method is not fired when I place a breakpoint in it. The action I want to cache depending on the language the user selected: [OutputCache(CacheProfile = "24HoursCache", VaryByCustom = "lang")] public ActionResult…
Léo Davesne
  • 2,103
  • 1
  • 21
  • 24
0
votes
1 answer

OutputCache attribute and VaryByCustom without parameter

I'm trying to use the OutputCache attribute to cache pages depending on the language users selected. [OutputCache(Duration = 86400, Location = OutputCacheLocation.Client, VaryByParam = "", VaryByCustom = "lang")] public ActionResult…
Léo Davesne
  • 2,103
  • 1
  • 21
  • 24
0
votes
0 answers

OutputCache and different case for Accept-Encoding

I have an asp.net mvc app with OutputCache enabled with varyByContentEncoding="gzip;deflate" and it seems to work fine except for one client who keeps sending GZIP as Accept-Encoding (upper case) and my cache is ignored and regenerated for his every…
Klotin
  • 165
  • 1
  • 12
0
votes
2 answers

How can I get the CurrentSite object in Orchard?

What I'm trying to do, ultimately, is access the CacheSettingsPart so that I can programmatically add some ignored URLs to the output caching config. The relevant admin controller already achieves this with: var settings =…
Dan
  • 89
  • 7
0
votes
1 answer

Outputcache conflit with cookie

I implement output cache in page but its conflict with base page. In base page I add cookie in preint event HttpCookie currCookie = new HttpCookie("CurrencyId", "3"); currCookie.Expires = DateTime.Now.AddDays(1); …
user3770459
  • 133
  • 1
  • 1
  • 9
0
votes
1 answer

How to manually run method with OutputCacheAttribute

I have method: [HttpGet] [OutputCache(Duration = 300, Location = OutputCacheLocation.Client)] public JsonResult TopNotification(Guid? portalIdentifier, string url) { var notificationMessages = new…
0
votes
2 answers

Outputcache in MVC4 Application

I'm trying to implement a caching for some views and files on my MVC4 page (would like to chache on server and client). Looks easy but i dont get it why it doesnt work for me. I've tried this little example down here: [OutputCache(Duration =…
user1584028
  • 69
  • 1
  • 1
  • 4
0
votes
1 answer

HTTP GET request caching vs asp.net Output caching

I have a very basic doubt about caching. I have sent a request to an aspx page from browser. Since it is an http Get request by default it will be cached. I can see that in about:cache of browser. But if that page is cached, then how my modification…
Dev
  • 309
  • 1
  • 8
  • 24
0
votes
1 answer

Remove OutputCache from MVC controller

I'm stuck trying to figure out why the outputCache is not getting cleared on the following setup. Pretty much every link I have checked to clear an outputCacheItem says to just call the RemoveOutputCacheItem(string) method. However I am finding…
macm
  • 544
  • 7
  • 21
0
votes
1 answer

Sitecore and caching control

I am working on this Sitecore project and am using WebApi to perform some service calls. My methods are decorated with CacheOutput information like this: [HttpGet] [CacheOutput(ClientTimeSpan = 3600, ServerTimeSpan = 3600)] I am testing these calls…
0
votes
2 answers

MVC 5 Action Filters execution scenarios

I have an action whose output is cached for 20 secs. If i add Action filters(OnActionExecuting & OnActionExecuted) for this action will it be called even if the cached view is taken or will it be called only once in 20secs when the view needs to be…
Unnie
  • 918
  • 8
  • 30
0
votes
1 answer

Should OutputCacheProfiles (in webconfig) be accessible under a medium trust environment?

I'm trying to use DevTrends Donut Caching in an MVC app in a shared hosting environment. When I upload the app I get this error: System.Security.SecurityException: MvcDonutCaching does not have permission to read web.config section…
Martin Hansen Lennox
  • 2,837
  • 2
  • 23
  • 64