caching

Specifying uncacheable memory regions

Hi For some simple performance tests I would like to specify some regions of an application program as uncacheable. For example, the application contains a function that maps to the memory address space 0x08002000 to 0x0800A000 in the executable. When this program is run, code within this address space should not be cached in anyway. In...

Add Expires or Cache Control Header to static content in IIS

After running the YSlow plugin on a site, I saw that one of the recommendations was to add far future expires headers to the scripts, stylesheets, and images. I would like to do this, does anyone have experience with this? I am using IIS 7 and I read an article from Microsoft but am not interested in disabling caching for asp pages o...

Can I use [CompressFilter] in ASP.NET MVC without breaking donut caching

I am trying to get [CompressFilter] working with donut caching and running into issues. What happens is that the whole page gets cached and not just the donut. The source for the CompressFilter I am using is below. I changed this from the original source to use OnResultExecuted instead of OnActionExecuting() because I needed access to t...

Why both no-cache and no-store should be used in HTTP response?

I'm told to prevent user-info leaking, only "no-cache" in response is not enough. "no-store" is also necessary. Cache-Control: no-cache, no-store After reading this spec http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, I'm still not quite sure why. My current understanding is that it is just for intermediate cache server. Even...

How to implement a custom cache provider with ASP.NET MVC

I am migrating a MonoRail application to ASP.NET MVC 1.0. In my original application I wrote a custom cache provider (a distributed cache provider using memcached). In MonoRail this task was very easy because the framework used interfaces and there is ICacheProvider that looks like this: public interface ICacheProvider : IProvider, IMRS...

Dynamically reading resources from a file

I've been using resx files for static strings in order to have a central place for changing them. The problem is that I can't change them after the project is built and deployed. There are some strings that I would like to change after deployment, without restarting the process (so .config files are out). It's possible to write code th...

Vary by control properties using PartialCaching in ASP.NET

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: <mycontrols:control1 runat="server" param1="10" param2="20" /> ...output would be cached separately from a control instance with different properties:...

jQueryUI Tabs - Caching Images

I have a form split apart throughout 4 tabs. One of the tabs contains photos if the user has uploaded some. Under each photo is a button to delete the photo. It performs an AJAX call to delete the photo and load in a new input[file] field that the user can use to upload another photo. This works fine. The problem is after the user uploa...

Combobox Dropdown Caching

We have a VB.Net application that has in the region of about 80 unique comboboxes spread over 15 Windows. Currently when a Window is loaded, the Comboboxes retrieve their contents directly from the SQL database. This is quite inefficient as the content of the comboboxes rarely changes, so it would make sense to retrieve all the combobox...

L1/2 cache problem

could L1/L2 cache line each cache multiple copies of the main memory data word? ...

Can someone explain a little bit about caching dynamic PHP pages?

I was wondering about caching dynamic PHP pages. Is it really about pre-compiling the PHP code and storing it in byte-code? Something similar to Python's .pyc which is a more compiled and ready to execute version and so that if the system sees that the .pyc file is newer than the .py file, then it won't bother to re-compile to .py file. ...

Shut Off All Caching on Firefox, Apache, PHP Plugin, Etc.

I want to shut off all caching on my Apache running under Linux, and all caching on Firefox and... is there anyplace else I might be caching? I want my PHP and .css files to be fresh from disk all the time during development. Disclaimer: I am asking about Apache as a dev tool, not as a deployment platform. If I ask about IIS and why it...

Is it possible to allocate, in user space, a non cacheable block of memory on Linux?

I have a bunch of buffers (25 to 30 of them) in my application that are are fairly large (.5mb) and accessed simulataneousley. To make it even worse the data in them is generally only read once, and it is updated frequently (like 30 times per second). Sort of the perfect storm of non optimal cache use. Anyhow, it occurred to me that it ...

Clear the ASP.net cache for multiple worker processes

We have an ASP.net (2.0) application configured to run with multiple worker processes using the web garden option in IIS. Most of our data is cached and occasionally we have to clear the cache when there are changes to the site. We have a simple page that will iterate through the HttpCache items and clear them. But each worker process ...

Hibernate - Same result after update/select

Hi, hibernateSession.createQuery("select foo where id = 1"); // This command return the Item with id 1. // [BREAK POINT STOP] ==> I go in MySQL and I delete this item manualy. // [BREAK POINT CONTINU] hibernateSession.createQuery("select foo where id = 1"); // This command return the Item with id 1 too ! :-( It's the same with hibern...

Problem with Caching on the client side?

I want to cache data on the client. What is the best algorithm/data structure that can be employed? Case 1. The data to be stored requires extremely fast string searching capability. Case 2. The cached data set can be large. I don't want to explode the client's memory usage and also I don't want to make a network and disk access calls w...

Why does query caching with Hibernate make the query ten times slower?

I'm currently experimenting with EJB3 as a prestudy for a major project at work. One of the things I'm looking into is query caching. I've made a very simple domain model with JPA annotations, a @Local business interface and a @Stateless implementation in an EJB-JAR, deployed in an EAR together with a very simple webapp to do some basi...

Which languages have support for return value caching without boilerplate code?

For methods where ... there exists a static one-to-one mapping between the input and the output, and the cost of creating the output object is relatively high, and the method is called repeatedly with the same input ... there is a need for caching result values. In my code the following result value caching pattern is repeated a lot...

Cache Asp.net Mvc Home Page

I am having an issue with caching the home page of my Asp.Net Mvc App. All the other pages cache fine using the [OutputCache(Duration=60, VaryByParam="None")] action filter. The problem is that the home page does not cache. I noticed that if I access the home page via Controller/Action ("Home/Index") then it caches but when accessed vi...

Rebind a listview from a jQuery iframe

I have a listview that includes links to open an iframe with jQuery and thickbox. This new window allows the user to edit the field information with the iframe. Update button - <input type="submit" name="bUpdateDate" value="Update" onclick="self.parent.location.reload(true);self.parent.tb_remove();" id="bUpdateDate" /> This refresh...