outputcache Questions
3
Solved
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
Can I:
Force OutputCache (Page and/or Control level) to expire globally?
Force Data Cache (i.e. C...
Jedlicka asked 10/2, 2009 at 19:47
4
Using ASP.NET MVC web forms we can put output cache either in controller level or view level. How can we mention "outputcache" in .cshtml page?
I did not find it anywhere. Where can I get the synt...
Stipule asked 11/12, 2010 at 6:34
2
I have output caching enabled in one of the pages as follows:
<%@ OutputCache Duration="300" VaryByParam="*"%>
The issue is that sometimes there is an exception and we display an appropria...
Diazotize asked 14/5, 2012 at 14:6
3
I have an action method that I want to cache:
[OutputCache(Duration=60*5, Location=OutputCacheLocation.Any, VaryByCustom="index")]
public ActionResult Index()
{
return View();
}
With this appro...
Chattanooga asked 9/2, 2012 at 12:10
2
Solved
Is there a way clear or reset the outputcache for an entire website without a restart?
I'm just starting to use outputcache on a site and when I make a mistake in setting it up I need a page I can...
Lyre asked 31/8, 2008 at 21:3
3
Solved
I have a problem with my custom RouteBase implementation and [OutputCache].
We have a CMS in which urls are mapped to certain content pages. Each type of content page is handled by a different cont...
Kiser asked 14/9, 2012 at 11:39
2
I am using the following output cache profile:
<add name="MyFunkyProfile" duration="180" varyByParam="*" location="ServerAndClient" />
In dev, I have a response header with one Vary entry:...
Jeopardous asked 3/8, 2012 at 12:8
2
Solved
I have a blog-type app built on CI 2.1.0.
When I add
$this->output->cache(5);
to my controller, CI correctly caches the page, and it loads quickly.
My issue is that if someone comments on...
Boulogne asked 18/5, 2012 at 19:29
2
Is there a way to use the OutputCache attribute to cache the results of only logged out users and reevaluate for logged in users example:
What I'd Like
[OutputCache(onlycacheanon = true)]
public ...
Desrochers asked 28/3, 2012 at 5:55
3
Solved
Using Windows Azure's Microsoft.Web.DistributedCache.DistributedCacheOutputCacheProvider as the outputCache provider for an MVC3 app. Here is the relevant action method:
[ActionName("sample-cached...
C asked 30/12, 2011 at 18:22
3
Solved
I have an ASP.NET MVC application. I need to cache some pages however only for non-authenticated users.
I've tried to use VaryByCustom="user" with the following GetVaryByCustomString implementatio...
Cycling asked 21/1, 2010 at 14:31
2
Solved
I currently use the repository pattern in my ASP.NET MVC 3 app.
I use OutputCache to lessen the load on my database by decorating my controller methods with a data annotation similar to this:
[Ou...
Shrove asked 3/4, 2012 at 19:16
2
i have a simple aspx page. Here's the top of it:-
<%@ Page
Language="C#"
AutoEventWireup="true"
CodeFile="Foo.aspx.cs"
Inherits="Foo" %>
<%@ OutputCache Duration="3600" VaryByPara...
Espino asked 1/6, 2010 at 8:0
1
Solved
What are difference between IIS (Dynamic and Static) cache, OutPutCache and browser cache?
I think I'm confuse about them.
Does browser cache all js or css files?
What happend if I use IIS cac...
Scutellation asked 12/3, 2012 at 8:26
1
Solved
I am trying to use the OutputCache attribute in my MVC app and it doesn't appear to work when I use OutputCacheLocation.Client:
public class HomeController : Controller
{
[OutputCache(Duration=15...
Nissie asked 6/3, 2012 at 21:34
1
My website have a home page, and I would like to cache that page for anonymous users, and set it as "private" for authenticated users (so they save it on their computers, nowhere else).
So, if the...
Webster asked 7/2, 2012 at 17:33
2
Solved
in my asp.net mvc project, I enable output caching on a controller as below
[OutputCache(Duration = 100, VaryByParam = "*", VaryByHeader = "X-Requested-With")]
public class CatalogController : Bas...
Durative asked 23/12, 2010 at 12:16
1
Solved
I have a simple MVC3 Controller Action like this
[HttpGet]
[OutputCache(Duration = 1200,Location=System.Web.UI.OutputCacheLocation.Server)]
public string GetTheDate()
{
return DateTime.Now.ToStri...
Durance asked 16/12, 2011 at 13:52
2
Solved
Is there a way to programmatically prime the asp.net output cache? I've investigated the caching API and can't seem to find an obvious way to do this. Has anyone tried something like this? If so, w...
Balfore asked 14/10, 2011 at 15:10
2
Solved
I have this action method:
[OutputCache(Duration = 2,
Location = OutputCacheLocation.Any,
VaryByHeader = "Accept-Charset")]
public ActionResult Index()
{
return View();
}
And the genera...
Homework asked 28/9, 2011 at 16:34
1
Solved
I am having some issues understanding what is happening when I create a simple subclass of OutputCacheAttribute in MVC3. Here is the code:
public class ExampleOutputCacheAttribute : OutputCacheAtt...
Latvia asked 21/9, 2011 at 14:12
1
Solved
The context
I have an Asp .Net web application with some pages that inherit from a base class "BasePage".
This BasePage class inherits from System.Web.ui.Page and I've overriden the Render method ...
Purport asked 7/7, 2011 at 20:12
1
Solved
I am reading a book about MVC2, and in the OutputCache section it states:
Warning In the earlier section “How Authorization Filters Interact
with Output Caching,” I explained that [Authorize] h...
Roughspoken asked 18/7, 2011 at 11:5
1
Solved
I'm flumoxed... re this and this "meta" questions...
A very basic http request:
GET http://stackoverflow.com/feeds/tag?tagnames=c%23&sort=newest HTTP/1.1
Host: stackoverflow.com
Accept-Encodi...
Woman asked 1/7, 2011 at 9:59
8
Solved
I'm building an online shop & trying to improve performance by minimising MYSQL queries.
Is it good practice to cache the mysql queries via a txt file and then fetch that instead of the query?...
Viviparous asked 22/6, 2011 at 0:34
© 2022 - 2024 — McMap. All rights reserved.