Questions tagged [outputcache]

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

680 questions
0
votes
1 answer

Stop Hits on server side code

I am using Output cache on Webpart in my ASP.Net application. and using <%@ OutputCache Duration="86400" VaryByParam="None" VaryByCustom="ConferenceID" %> I notice that webpart contents are coming from cache but my server side code also running that…
Dalvir Singh
  • 423
  • 3
  • 11
  • 25
0
votes
1 answer

outputcache not working when the action called by other action

ASP.NET MVC4! the code : [OutputCache(Duration = int.MaxValue, VaryByParam = "id")] public ActionResult Index(int id = 0) { return Content(DateTime.Now.ToString()); } the code above working well. but the code: public…
smallerpig
  • 27
  • 5
0
votes
1 answer

ASP.NET MVC OutputCache inherited is not working

Hello I am trying using the OutputCache inheriting a base controller. But it is not working, my codes: BaseController public abstract partial class BasicControllerController : Controller { protected override void…
José Luiz
  • 334
  • 1
  • 5
  • 18
0
votes
2 answers

How can output cache be enabled in SharePoint Foundation?

I am using SharePoint Foundation 2010 and would like to enable output caching for certain pages, or maybe the whole site. On SharePoint Server you have a mechanism to enable page output caching across the site collection (it is actually ASP.NET…
mike
  • 1
  • 1
  • 2
0
votes
0 answers

ASP.Net Mvc - Physical location (e.g. on C:\ drive) of OutputCacheLocation.Client files

I have a frequently-visited page which contains a number of images. I would like to download the image to the client's machine on the first occasion that the image is requested, and, refer to that file on subsequent requests, rather than download…
0
votes
1 answer

Why is asp.net outputcache being session specific?

I'm trying to implement the outputcache in my .aspx page. My directive goes like this < %@ OutputCache Duration="600" VaryByParam="*" %> My urls usually look like this. http://example.com/{location}/offers/{category} But during testing I…
0
votes
2 answers

OutputCache Ignore Timestamp

I'm using the OutputCache in MVC but I'm having difficulty caching when a timestamp has been appended to the URL. In particular jQuery's AJAX component adds _=21321423432 to the end of the url. Everytime I call the action's URL it will always step…
heymega
  • 9,215
  • 8
  • 42
  • 61
0
votes
1 answer

Use output caching VaryByParam with JSON request

I have a controller action which receives a Person type parameter. The parameter is bound from a JSON request using the JSON based model binding feature. My VaryByParam is not working in this case, because the request doesn't hold any "classic"…
Zoltán Tamási
  • 12,249
  • 8
  • 65
  • 93
0
votes
1 answer

Is there any way to clear cache from server farm?

I have implemented OutputCache in an application and it works fine, but since I have specified the location as server, and the applications runs in server farm (2 servers) , when I clear the cache, it clears only from one server at one time. I have…
Tipsy
  • 68
  • 6
0
votes
2 answers

Output caching - is it still viable?

I've had quite a few goes at Googling an answer to this, but have been unable to find one that satisfies the question. I'm using C# with web forms. I have many opportunities to cache pages such as Privacy, Terms etc, since they hardly ever…
John Ohara
  • 2,821
  • 3
  • 28
  • 54
0
votes
1 answer

How to customize OutputCache key in MVC, c#?

I'm working with MVC 5 and Razor engine. I have a controller's action as the following: [HttpPost] [ValidateAntiForgeryToken] [OutputCache(Duration = 120, Location = OutputCacheLocation.Server, VaryByParam = "*")] public PartialViewResult…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
0
votes
2 answers

Does the ASP.NET OutputCache directive actually cache or just set some Response properties?

When someone uses the OutputCache directive in an ASP.NET WebForms/MVC application, does it actually do any caching server-side, like using the Cache or does it only setup some properties in the Response object like the Cache-Control…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
0
votes
1 answer

Output Caching - why doesn't it seem to do the job?

I have quite a big user control which creates an ASP.NET tab menu and within each tab a lengthy set of icons/menus. The menu is dynamically created from the database. I thought I could wrap the user control with an output cache directive to speed…
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
0 answers

git diff output only line changes

I am trying to capture the differences across file changes by using git diff --exit-code --minimal the problem is that this generates too much output. Let's say I just add a new line on the beginning of the file, the rest remains the same…
Alg_D
  • 2,242
  • 6
  • 31
  • 63
0
votes
1 answer

MVCDonutCaching - how to remove Child action cache MVC Donut Caching

I'm using this MVCDonutCaching Nuget package because in the tutorial they said this was possible with child actions. This question didn't work for me or I didn't understand it correctly. If someone knows how to delete the child cache with the…
LockTar
  • 5,364
  • 3
  • 46
  • 72