caching

java distributed cache for low latency, high availability

I've never used distributed caches/DHTs like memcached, jboss cache, ehcache, etc. I'm wondering which, if any, is appropriate for my use. First, I'm not doing web applications (as most of these project seem to be geared towards web apps). I write servers (Order Management Systems actually) for financial trading firms. The servers th...

UITableViewCell Reuse Identifier with Variable Height Cells

I have five different cells in a table across five sections differing just in height, and text. Will I need to have one reuse identifier or five ? I am using a custom cell. The Apple document talks about reuse with cell having the "same general" configuration. Does differing height make each different for caching and reuse perspectives....

Cache AJAX requests

I am sending AJAX GET-requests to a PHP application and would like to cache the request returns for later use. Since I am using GET this should be possible because different requests request different URLs (e.g. getHTML.php?page=2 and getHTML.php?page=5). What headers do I need to declare in the PHP-application to make the clients brow...

Reliably caching XML feed from a web service into a file

I need to cache some xml from a webservice to a local xml file for use by my web application. There are two web services, one which returns the data, and one which returns the date/time the data last changed. The xml file size could range from 50KB to 500KB I currently have an executable that runs from a windows scheduler that perform...

CBlobCache usage - ATL Server Library

Someone may have an example of use for CBlobCache? ...

How to Prevent an Applet from Unloading across web pages?

I have a large applet that takes some 40 seconds to initialize (cabs are cached so ignore download time for this question). The issue is, if the user goes to Page A which launches the applet (single window) and then navigates to page B, the applet is unloaded. If the user goes back to Page A, they incur the 40 seconds init time once ag...

How to use Query cache with ADODB?

How to use Query cache with ADOdb in PHP? Is it default in ADOdb or Is there any configuration needed ? ...

xml parsing / querying performance question for asp.net

I have to port a smaller windows forms application (product configurator) to an asp.net app which will be used on a large company's website, demand should be moderate because it's for a specialized product line. I don't have access to a database and using XML is a requirement from their web developers. There are roughly 30 different p...

browser cache bypassed in firefox?

Consider the following html page, which can load in many large png files: <html> <head> <script type="text/javascript"> function hide( ) { document.getElementById("here").innerHTML = "hidden"; } function show( ) { var loadMe = ""; for (var i=1; i<250; i++) { loadMe += "<img src='http://domain.com/" + i + "_a.png'><br>...

How do you do full page caching with dynamic information

I imagine a very common scenario is where an entire dynamic page can be cached in such a way that an entire framework/CMS stack can be bypassed, except that some small amounts of information change depending on whether somebody is logged in or not. For example, the menu might change from "login" to "Welcome Somebody!". No there's not way...

Best way to cache persistent data (e.g. code books) in Spring?

I have a series of code books in my database, and I am using plain JDBC calls to fetch them and store them in a collection. I would like to put these in some kind of a cache at application startup time in order to save time later. I don't need any fancy stuff like automatic object invalidation, TTL etc - the code books change rarely, so...

iBATIS cache does not get flushed on given statements.

Hi, I am using iBatis for my database interaction. Lately I am trying to improve performance of some static data fetches by configuring caching. The chache got configured and worked properly however the problem is in flushing of cache data whenever any insert/update/delete happens to that data. I did following configuration for category...

.NET HttpRequests using the Windows system Cache

I'm using either WebClient or HttpRequest/REsponse to make http calls for images. I'm not sure how caching specifically works for browsers, but is there a way to enable either WebClient or WebHttpRequest to use the systems "temporary internet files" cache that the browser utilize? Or, do I have to write my own disk cacher? ...

How do you use ASP.NET Cache object in a not ASP.NET application ?

I'd like to use System.Web.Caching.Cache object in my application, but this code throws a NullReferenceException. Cache cache = new Cache(); cache["key"] = new object(); Any ideas ? Update HttpRuntime.Cache solve my problem but does somebody has a solution to use multiple instance of cache in my application ? ...

ASP .Net Output Caching and Ajax Control toolkit

I'd like to know if there's a special way of implementing output caching and using a control from the ajax control toolkit. I keep getting a javascript error on a page with output caching and a tab control that says: ajaxtoolkit (my assembly prefix) is undefined. This is the directive I added: <%@ OutputCache Duration="3600" VaryByPara...

Large volume database updates with an ORM

I like ORM tools, but I have often thought that for large updates (thousands of rows), it seems inefficient to load, update and save when something like UPDATE [table] set [column] = [value] WHERE [predicate] would give much better performance. However, assuming one wanted to go down this route for performance reasons, how would you ...

OutputCache behaving strangely

hello, <%@ OutputCache Duration="3600" VaryByParam="none" %> protected void Page_Load(object sender, EventArgs e) {Label1.Text = DateTime.Now.ToString();} If, after I compiled this newly created application, browser B1 is first to request Cache.aspx, then the time displayed on received page is 10.16:20. If, after say 10 seconds,...

Best technique for caching results from queries that change infrequently

I have a php web application where certain data changes on a weekly basis but is read very frequently often. The SQL queries that retrieve the data and the php code for html output are fairly complex. There are multiple table joins, and numerous calculations - but they result in a fairly basic html table. Users are grouped, and the ta...

Entlib Cache.Contains NULL problem

Hi, I have a combined authorization and menustructure system on our backend. For performance reasons EntLib caching is used in the frontend client (MVC rel 1.0 website, IIS 5.1 local, IIS 6.0 server, no cluster). Sometimes 'Cache.Contains' will return true, but the contents of the cache is NULL. I know for certain that I filled it corr...

Which browsers have problems caching XMLHTTPRequest responses?

Do any of the currently popular browsers have particular problems caching* XMLHttpRequest responses that I need to be aware of? I'd like to be able to include XMLHttpRequest queries on every page as a method of dynamically loading content (ie JSON) or behaviour (like eval()ed Javascript) relevant to the type of page, but wanted to make ...