caching

Why doesn't Firefox show the correct default select option?

I'm making a web app to manage product SKUS. One part of that is to associate SKUs with product names. On each row of a table, I list a SKU and display a <select> box with product names. The product that's currently associated with that SKU in the database is given an attribute like selected="selected". This can be changed and updated vi...

Is there a way to disable browser cache for a single page?

For a small intranet site, I have a dynamic (includes AJAX) page that is being cached incorrectly by Firefox. Is there a way to disable browser caching for a single page? Here's the setup I'm using: Apache under XAMPP, running on a Windows server PHP Clarification The content that I'm primarily concerned about is page text and the ...

Using non persistent Http Cookies to deliver out of band data to the browser

Imagine that your web application maintains a hit counter for one or multiple pages and that it also aggressively caches those pages for anonymous visitors. This poses the problem that at least the hitcount would be out of date for those visitors because although the hitcounter is accurately maintained on the server even for those visito...

Singleton across classloaders/EJB:How to avoid multiple instance of JCS Cache due to multiple class loader/EJB's?

I want to use JCS (Java Cache System) to cache ldap queries which should be shared by multiple EJB's (class loaders) to avoid the duplicate searches. I have created a singleton wrapper to create only one instance of JCS cache but due to each EJB's having their own class loader, it creates multiple instance of JCS cache so ldap search re...

How can caches_action be configured to work for multiple formats?

I have a rails action which responds to requests in various formats including AJAX requests, for example: def index # do stuff respond_to do |format| format.html do # index.html.erb end format.js do render :update do |page| page.replace_html 'userlist', :partial => "userlist", :obje...

How to get a user's friends info on Twitter without breaking the Rate Limit

I am trying to do something that appears to be simple, but I can't figure out a way around it without breaking the rate limit. The first API call I'm making is the get a user's friend's IDs. $friends = $to->OAuthRequest('http://twitter.com/friends/ids.json', array(), 'GET'); That returns a huge string with IDs. In my case, I'm follow...

Fastest alternative to Datatable.Select() to narrow cached data?

Stack Overflowers: I have a search function on my company's website (based on .NET 2.0) that allows you to narrow the product catalog using up to 9 different fields. Right now, after you make your selections on the frontend I am building a dynamic query and hitting the database (SQL Server) to get the resulting list of items numbers. ...

Caching behavior of UIImage

Does UIImage ever removes images from its cache? Can I keep a pointer to an image I got from imageNamed: and use it as long as I like or must I always call imageNamed:? ...

Distributed Caching

I am looking for a java distributed caching solution. We would like features likes: Distributed Auto-Discovery Redundancy Non-Centralized We've analyzed a framework like TerraCotta which seems to be everything we would ever want from a caching framework... However, there seems to be a central caching node(s) that is required which b...

Measuring application startup performance

I'm using C++/CLI on Windows. It's an MFC app built with /clr. I want to test how long it takes my application to start up. The first time it took 10s, but subsequently it took 4s, 4s, 5s. I'm assuming this is due to Windows caching the DLLs. Is there some tool that will allow me to remove a directory from the cache, so that my test co...

caching the webcontent ( images ) on the iPhone

I have a question concerning the caching of webcontent. I've created a UIWebview component Code: NSString *urlAddress = @"http://192.168.55.101/~test/mobile/iphone/ads/v0.1/"; //URL OBJECT footer UIWebView *aWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320 , 100)]; NSURL *url = [NSURL URLWithString:urlAddress]; ...

Fastest way to match telephony prefixes using asterisk PHP script

Hello all, and thanks in advance for the help. Background - I am writing a PHP script that needs to figure out the destination the caller is trying to reach. Telephony prefixes are strings that identify a destination. For each call, the program must find the longest prefix that matches the string. For example the number 30561234567 wou...

PHP callback just before script dies

I have a set of custom PHP scripts. They load a main PHP file (to include other files, set settings, etc.) From this script I'd like to insert a callback function that is called by the scripts that included the main file just before ending. What I intend to do is make a simple custom output cache with ob_get_contents(). I want to do ob_...

Remove Telerik Cache and Release Memory

The scenario: I'm using Telerik Report Viewer in my web application to show large reports (about 5000 records from my DB, resulting in a 80 page document to display). Everything was working just fine... but on this terrible day my app starts to throw a "Out of Memory" exception. I realize that Telerik Report was caching all data and onl...

Caching in C# without System.Web

I want to be able to cache a few objects without referencing System.Web. I want sliding expiration and little more... Is there really no where to go but to build my own using a Dictionary and some selfmade expiration of objects - or are there something in the .NET framework I've totally missed out on? ...

ASP.NET set cache dependency with a SqlCommand

Is this an effective way to set the cache item dependent on the query? HttpRuntime.Cache.Insert( "ListLanguages", list, new SqlCacheDependency(command), DateTime.UtcNow.AddMinutes(AppConfiguration.CacheExpiration.MinimumActivity), Cache.NoSlidingExpirati...

Disk caching http Library for Java: Does it exist?

Apache HttpClient does not have caching as far as I can see so my question is do you know about a Http library that can cache to disk? It would be fun to implement it myself but before i do it, it is better to check if it already exists :-) Requirements: Support for Http 1.1 Can cache to disk (ex: a folder) Support for a maximum cache s...

Use cache file or one more HTTP Request?

Hi people, on all the "speed up your website" sites and books they always tell us to minimize HTTP requests at all costs. This is fine and nice but what if that means that on every page you have to reload 120kb again and again and again because the user cache is empty? If i use 5 js files on every page of my website, wouldnt it be bett...

How to make APC (PHP Cache) work?

I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time. So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays Hits: 1 (50....

Output caching for "almost static" pages in asp.net mvc

Most of the web applications have pages that are "almost static" in the sense they change really very rarely their content, but when it changes this should be seen immediately on the page. So if you have some OutputCache attribute that permits to cache forever on your PageShow method, the cache should be invalidated immediately by a cal...