outputcache Questions
1
I'm fairly new to using the OutputCache attribute in ASP.NET MVC.
Static Pages
I've enabled it on static pages on my site with code such as the following:
[OutputCache(Duration = 7200, VaryBy...
Kulda asked 30/5, 2010 at 2:2
5
Solved
We've got a fairly standard e-commerce scenario with paged lists of products within categories. For better or worse, about 80% of visitors never navigate past the first page, depending on the categ...
Gey asked 25/6, 2009 at 10:22
1
Solved
This is what I have:
[OutputCache(Duration = 3600, VaryByParam = "model")]
public object Hrs(ReportFilterModel model) {
var result = GetFromDatabase(model);
return result;
}
I want it to cache...
Intertwine asked 22/5, 2015 at 11:20
2
Solved
Using any of the OutputCacheProfiles given below
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<clear/>
<add
name="CachingProfileParamEmpty"
duration="87"...
Digraph asked 5/3, 2012 at 20:28
3
Solved
I have an asp.net mvc 3 project and I have a home controller. I have tagged my Index action with this attribute:
[OutputCache(Location = System.Web.UI.OutputCacheLocation.Any, Duration = 120, Vary...
Thermosiphon asked 20/3, 2011 at 21:52
1
Solved
I have used ASP.NET Web API CacheOutput Library for my asp.net project for web API and it working fine, but have another controller from where I have a POST method and I would like to invalidate my...
Setback asked 8/12, 2014 at 9:12
0
I have a controller action in my asp.net mvc 3 application.
My action consist of a db fetching operation and outputs the result into a view. I can use the OutputCache action filter attribute to st...
Germano asked 4/11, 2014 at 16:41
3
Solved
Is there any way that I can list the pages which are currently stored in the OutputCache?
Just a list of paths would do, but if there's a way to get more information about each item (expiry etc),...
Mortician asked 26/2, 2010 at 17:20
3
Solved
I am using the PartialCaching attribute on the base class of a user control.
I would like the cached controls to vary based on the properties set on the control instance.
For example:
<mycont...
Stegosaur asked 19/5, 2009 at 4:10
3
I would like to have certain pages have a 10 minute Cache for clients and 24 hours for the server. The reason is if the page changes, the client will fetch the updated version within 10 minutes, bu...
Speight asked 11/2, 2013 at 23:44
4
Solved
Is there a way to fetch and print, all the data stored in apc's storage?
I need to do so for testing and debugging purposes.
I know I can retrieve a specific data by doing apc_fetch(id), but I do...
Ramonitaramos asked 29/5, 2012 at 11:42
1
Solved
Introduce the Problem
We have successfully configured the browser cache to return a saved response if the server indicates 304 Not Modified. Here is the config:
<caching>
<outputCacheSett...
Pendent asked 21/5, 2014 at 5:53
1
Solved
I'm trying to implement caching in ASP.NET MVC 4 using the OutputCache attribute.
Here is my controller action:
[HttpGet]
[OutputCache(Duration = CACHE_DURATION, VaryByCustom = "$LanguageCode;myP...
Photocompose asked 10/4, 2014 at 15:40
2
Solved
I am beginner in MVC and I have a project to transform from MVC2 to the latest version of MVC.
I read read some books on MVC 4, so I started to understand the main mechanisms.
However, when trans...
Widener asked 17/2, 2014 at 12:44
1
Solved
I have a Sitecore 7 Controller Rendering. I need to vary the OutputCache by a custom method.
The rendering is currently set to "Cachable", "VaryByData" and "VaryByParm" in Sitecore.
I've added an...
Loris asked 22/1, 2014 at 15:13
3
I want to be able to set a long expires time for certain items that a user downloads via GET request.
I want to say 'this is good for 10 minutes' (i.e. I want to set an Expires header for +10 minu...
Platypus asked 16/2, 2009 at 9:21
1
Solved
I am having an issue where output caching doesn't appear to be working for my ASP.NET MVC 4 (EPiServer 7) website.
I have the following output cache profile in my web.config:
<caching>
&l...
Marasco asked 17/11, 2013 at 6:10
3
Solved
When creating an ASP.Net MVC 3.0 application, I can include an OutputCache attribute on an action, and define the duration the cache will persist. After this duration, any activity causing the acti...
Chinkiang asked 16/3, 2011 at 16:21
4
Solved
I am using the OutputCache attribute in my MVC website as follows:
[OutputCache(Duration = 5000,
VaryByParam = "name;region;model;id;op;content;featured;isStarred;page;size;")]
However sometime...
Meghanmeghann asked 11/1, 2011 at 20:45
2
I use OutputCache in an ASP.net MVC application. As developing with an active OutputCache is not very pleasant I want to disable the OutputCache on the Development Systems (local machines and devel...
Ritualism asked 7/5, 2010 at 12:7
3
Is it possible to vary the output cache in MVC based on certain values in the session? I've read a lot about using the varybycustom functionality and overriding GetVaryByCustomString in Global.asax...
Globigerina asked 25/7, 2012 at 8:29
1
Solved
I'm trying to add an OutputCache to an MVC Action that has a WebImage.Write() response but as soon as I add it (even with a duration of 0) the content type changes from image/jpeg to text/html and ...
Trug asked 13/6, 2013 at 13:58
1
im using mvc-mini-profiler on a test site. When i put an OutputCacheAttribute on my action method, the profiler is not executed and always return the last value that he had before the cache.
is th...
Betterment asked 25/7, 2011 at 23:26
2
I am trying to take advantage of the donut caching features in .Net MVC 3. For my Home page, in my home controller, I have:
public ActionResult Index()
{
return View();
}
[ChildActionOnly]
[Outp...
Impaste asked 26/2, 2011 at 12:0
1
Solved
I've read lots of posts about caching already, but none of them actually match my needs exactly. In my mvc 3 app I have an action method GetImage() that returns a File of image type. Then I use thi...
Snailpaced asked 8/2, 2013 at 9:27
© 2022 - 2024 — McMap. All rights reserved.