caching

cache values been seen by other browser user?

A strange issue.. and probably some key thing I am missing... I am using the MS Enterprise Library version 5.0.. specifically the cache engine. I have a website where from a certain page I do the following: Cache some values I need for the next page or two.. Go off to another site - actually a payment site.. That payment site returns...

Non-cached results in LINQPad

How do I force LINQPad to give me a non-cached result from a LINQ2SQL query? The scenario is this: 1) examine some data (from a in MyThings where ... select a).First(); 2) modify data outside LINQPad immediately after (service call) 3) re-examine some data (from a in MyThings where ... select a).First(); It seems to be caching results...

jQuery AutoComplete Dependency Cache Issue

I'm using the jQuery AutoComplete plugin to pre-fill a field called 'Model' depending on the name of a 'Car' entered in a previous field. However, if the user types in 'C' in the 'Model' text box, and then changes the manufacturer and types 'C' in the Model text box again, the same models appear. I believe this must be a cache issue wit...

How to serve different cached versions of a page depending on a cookie in Drupal?

The task is relatively straightforward: A Drupal website displays a list of articles with thumbnails. Some visitors would like to view it without images by clicking on a button/link and have that preference saved. e.g. http://patterntap.com/collections/index/ The problem is all visitors are anonymous and given certain traffic, page ...

What is the best way to cache and reuse immutable singleton objects in Java?

Hi, I have a class representing a set of values that will be used as a key in maps. This class is immutable and I want to make it a singleton for every distinct set of values, using the static factory pattern. The goal is to prevent identical objects from being created many (100+) times and to optimize the equals method. I am looking ...

Caching aspect - how to create key from method name and arguments

I am creating an aspect to apply to methods that checks the cache for a return value, and only permits procession onto the logic of the method if the cache is empty or stale. I need to generate a cache key for the storage of this information that is unique to the method call for a given set of arguments. My initial hunch is to implement...

How to prevent caching of asynchronous requests?

I'm working on a sortable table, that is refreshed asynchronously when the column headers are clicked. The parameters determining the column I'm sorting by and the direction are stored in the query string. The first time I click the header, the table is sorted by that column ascending, the second time it's sorted descending. But the thir...

ASP.NET MVC 2 - Avoiding repeatedly querying the database for static data?

What can I do to avoid the repeated loading of static data every time a page is loaded in ASP.NET MVC2? This is pretty wasteful, and I would like to fix it. My master page has the typical User Name + Company Name display in the top right corner. But because of the stateless nature of MVC, this data has to be looked up every single time...

Can I use controller methods in a observer?

I need to refer to a controller method from a cache observer, How can I make it? ...

SQL Caching and Entity Framework

I have put together a small ASP.NET MVC 2 site that does some very extensive date mining/table-joins/etc. Using MVC, I have a controller that returns the data in many different forms (tables, images, etc). To save hitting the database frequently I have a dual cache mechanism: For identical parameters to the same action I use the O...

Caching a large number of images in a jQuery/HTML5 application

I am building a web application in jQuery/HTML5 which will run in Webkit-based browsers on touchscreen kiosks. There are a large (thousands) number of images which the application uses, which I need cached to each browser. At first I thought a HTML5 cache manifest would be the best option (with the thousands of image URLs listed), but ...

HIbernate Entity Manager: How to cache queries?

I am using the Hibernate 3.5.1 and EntityManager for data persistence (with JPA 2.0 and EHCache 1.5). I can obtain the query by the following code: EntityManager em; ... Query query = em.createQuery(...); ... Now, the problem is that EntityManager's createQuery() method returns javax.persistence.Query which, unlike org.hibernate.Query...

Offline not working in mobile Safari with cache manifest

I'm working on a mobile site for the iphone. I've added a cache manifest and loaded it with a list of resources needed for offline capability. The manifest file has the correct content type. If you view the response header for the file, the content type is text/cache-manifest. The manifest file is here: http://hoodisgood.clientsit.es/c...

application cache with page cache in php?

Hi, Do we get any undesired results when we use application cache in combination with page cache in php? Thanks & Regards, Satya ...

Is there any difference between a shared location and GAC?

What is difference when .NET assemblies are stored at shared location and GAC? ...

Coding a caching server

I have been researching and have some few ideas about a distributed caching system for a in memory key-value store with replication and all the jazz associated. SO I wanted to know from the community what is the best language/framework/technology mix i should go for. ...

How to flush the disk read cache under Windows?

In order to be able to so some benchmarks I need to cleanup Windows disk read cache. How can I do this? In fact I want to compare if loading a big Unicode file (UTF-8 or UTF-16) from disk is faster or not, considering that in memory I do keep UTF-16. I know that it should be no significant difference but in order to benchmark it I nee...

Caching while loading objects from database in Entity Framework

Here is my simplest structure Customer CustomerID FirstName LastName ... BrokerID <- Navigation Property created with this FK Broker BrokerID FirstName LastName Now my question is, if I load multiple customers, and I want to see list of customer and I also need to see the Name of Broker associated with the cus...

Caching all users in ASP.NET

I am working on a web app in ASP.NET/C# which needs to be scalable to handle the high user load (will probably run in a web farm). Since it will cater to a high number of users, around 1 Million plus, but number of online users would be around 30K-50K. I plan to use caching (provider based), and was wondering: Is it a good idea to cach...

"Cache-Control: Max-age=0" in IIS 6.0

Hello, I've configured my IIS 6.0 load-balanced website to have empty ETag headers, per what YSlow recommends for load-balanced websites. Both before AND after I configued this empty ETag header, I got all images being cached on the client side, but with primed cache it was still checking for new versions on the server and returning a ...