caching

How can you prevent Silverlight Client Http request from caching respones?

I am using a HttpWebRequest created from WebRequestCreator.ClientHttp.Create() to fetch data from a webservice. And everything seemed to be working fine until I found out the calls where being cached. I was pretty sure that the ClientHttp did not include caching, but after a bit of searching I found this little note: Client HTTP Pro...

Tomcat prevent static resource caching

I have read through several answers to this and none of them have worked. I have put a cachingAllowed in my app's META-INF/context.xml. I have put cachingAllowed = 'false' in the server.xml and context.xml in vain. I have also deleted my work/[app] cache, this is what I'm seeing on resources coming back. JSP - Looks good! Request UR...

Rails DB: How to cache complex calculations? Memoizing? Separate table? Action caching?

For my site, I have models Category and Product, with hundreds of categories, each having thousands of products. For the Category views, I'd like to do something like average price of all the products included. And for the product views, I'd like the average for that product's category to appear. So, with thousands of these calculations...

AppFabric Caching - What are its serialization and deserialization requirements for an object?

Problem: When caching an instance of a class and immediately getting it back out of cache, i get the object back (its not null), but all of its properties / fields are null or defaults. _cacheHelper.PutInCache("testModuleControlInfoOne", mci); //mci has populated fields var mciFromCacheOne = _cacheHelper.GetFromCache("testM...

Lightweight method to cache some text with LAMP

I have a symfony website running on the standard LAMP setup. I need to store about 400 bytes (the result of a JSON query, actually). the result for this query fails often (out of my hands). I want to cache this somehow. what is the easiest, cleanest, lightest way to do this? I have a MySQL database that's being used by my models, so I ...

Ideas for a single machine, cross process object cache?

I've got a solution (.net 4, c#) consisting of a webapplication, several windows forms apps and a couple of windows services. Now I'd like to implement a global caching mechanism, so that all these application access the same cache (if possible with as little changes to existing code). My first guess would be using a AOP for implementing...

How to use offline application cache correctly in HTML 5

I've started using HTML5 application cache to provide the possibility for users to use web resources even when they're offline. The idea is that the user downloads the page in the morning, and enters data into the form through the whole day. If he happens to be online post the data to the server, if not, it should be cached in localStor...

JS/AJAX browser caching issue

Hey, I am working on an eshop with a calculator to calculate your loan. I need some fresh insight on this... imagine this situation: User clicks on one of the buttons it will do a POST request (jQuery) and fill the required data. User clicks add to cart and goes to cart User clicks back button (browser) Page is loading, server is fi...

Query cache in SQLite

Is there any mechanism to keep query results in order to reuse them the next time this query occurs? I'm not talking about SQLite's cache that stores pages retrieved from a database file. This is more about a query execution without using SQLite B-tree and Pager modules. ...

Caching ASP.NET users related data within WCF service.

My requirement is to call WCF web service from ASP.NET code behind and pass some data for example: void Add(int x, int y); Result of the operation should be somehow stored within WCF web service (member variable). Later user should be able to call double Equals(); and get the result of the operation. Of course since it's an open w...

C#: web browser control, problem with cache

Hi, I am using a web browser control do display some data in html form. Data comes from the database. The browser is inside a dialogbox, and every time the data are changed, the dialog is displayd. The problem is that it is displayed with the old values, even if it is bind with the updated object/datasourse. Now I use a refresh button ...

OleDbConnection s FillSchema doesn't change after alter table (Oracle)

Hi, I got a problem when using OleDbConnection in combination with an oracle Database. When i request the schema of an existing Table using the OleDbConnection's FillSchema Method the result seems to get cached somehow. To reproduce the Problem you need to do the followin steps: create a table named cachetest with one column Request ...

Get current OutputCache profile

In my ASP.NET MVC application I have a custom cache provider inherited from base OutputCacheProvider class. Is there any way to get output cache profile for current request in my provider? ...

Clearing ActiveRecord cache

I'm building a command line application using ActiveRecord 3.0 (without rails). How do I clear the query cache that ActiveRecord maintains? ...

Is browser cache clearable via code?

I have a menu on my site that changes depending on whether the user is logged in or not. With browser caching, the menu "gets stuck" in either state and is confusing to users. They'll login, but the menu won't update because it's still cached in the unauthenticated state... and vice versa. How is this typically handled? Can we refresh ...

how to disable tomcat caching?

how to disable tomcat caching? I use this - <Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1"> in Tomcat/conf/context.xml but it not helps ...

rails fresh_when/stale? usage

In my post_index action, I generate different kinds of "@posts" like.. def index case params[:listing_type] when "all" @posts = get_all_post_from_memcached when "most_popular" @posts = get_all_most_popular_from_memcached respond_to do |format| format.ht...

Managing iPhone app sandbox tmp directory size for caching images

I have a fairly image-intensive iPhone app, and I'm looking to store remotely downloaded images locally in the app's sandbox tmp directory to avoid unnecessary network requests. Is there a limit to the total size of the files stored in an app's directories, or does the app need to manage that? How would the app determine the size of the ...

how to implement ws-at transactions in appfabric applications

in the following forum post, a microsoft person indicated that there is no ws-at transaction support exposed in AppFabric but that something abut WS-AT transactions can become involved with an AppFabric call by using the WCF transactionScope options: http://social.msdn.microsoft.com/Forums/en-US/dublin/thread/1a34bff2-1ce3-4e28-8c3b-96...

What is TLB shootdown

Hello guys, Can some one explain what is a TLB shootdown in SMPs. I am unable to find much information regarding this concept. Any good example is very much appreciated. ...