caching

Prevent cached iPhone webapp from reloading (scrolling to top)

I have an iPhone webapp that uses a cache manifest to work offline. I add the webapp to my home screen, use it (say scroll to a certain location on a page), then go back to homescreen. When I open the app again, for a brief moment I see where I used to be (at that scrolled location on that page), but then the app "reloads" and I get scro...

Data structure to store key-value pairs and retrive the key for the lowest value quickly

I'm implementing something like a cache, which works like this: If a new value for the given key arrives from some external process, store that value, and remember the time when this value arrived. If we are idle, find the oldest entry in the cache, fetch the new value for the key from external source and update the cache. Return the v...

Amazon S3 Missing Files

We're working on developing user widgets that our members can embed on their websites and blogs. To reduce the load on our servers we'd like to be able to compile the necessary data file for each user ahead of time and store it on our Amazon S3 account. While that sounds simple enough, I'm hoping there might be a way for S3 to automatic...

Better approach to saving Webpage content to database for caching

hi, i want to know which approach is better to saving Webpage content to database for caching? Using ntext data-type and save content as flat string Using ntext, but compress content and then save Using varbinary(MAX) to save content (how i can convert flat string to binary? ;-)) An other approach which you are suggest to me UPDATE ...

Is there a way to tell browsers to ignore cache from before a certain date?

I have an updated stylesheet that I cannot rename or insert any ?nocahce=blah sort of thing - but browsers are still using a cached version. Can I put a meta tag in (or something like that) that effectively cancels any cache from a certain date? ...

Good apps I could use to store a page locally?

Hi folks, I really need to find a reliable way in order to store a web page locally, with all it's dependencies e.g. html, css stylesheets, javascript, etc... A python library would be awesome, a CLI would be great too. Also would this type of app/library have a standardized name? Any suggestions guys? =) ...

speeding up jasperreports

hello, i just profiled my reporting application when i tried to generate four times the same report in a row. the first one took 1859ms whereas the following ones only took between 400 and 600ms. what is the explanation for that? could i somehow use it to make my application faster? the reporting module runs on the server and waits for t...

Speed Performance In Recursive SQL Requests

Hi, I have so category and this categories have unlimited sub category. In Database Table, Fields are ID, UpperID and Title. If I call a category and its subcategory in DataTable with recursive method in program(ASP.NET project) performance is very bad. And many user will use this application so everything goes bad. Maybe All categorie...

Caching MVC .NET 4.0

Hello, I am trying to cache a selectlist which is not null but I get a null exception error. The line of code causing the error is: (note item is created using Cache item = new Cache(); and tripVM.friendDropDown holds the selectlist item.Insert("friendDropDown", tripVM.friendDropDown,null,DateTime.Now.AddMilliseconds(10000), TimeSpa...

Will caching work if one of the web servers has a clock that is slightly off?

It is said that the web servers' clocks must be identical for the Expires and Cache-Control headers to work? Why is that? Can't they be off by 1 second or a few minutes? If the cache is supposed to be good for 1 year, then won't a time difference of a few minutes or even a few hours not matter on one or some of the web servers? In ht...

how to delete cache in an ASP website from an ASP.NET website on same server?

Hi, I have two separate websites on the same server. One site is a forum (written in ASP Classic) where users may post information in various sections and threads etc. The other website (written in ASP.NET VB) is used for a club where users may purchase and download videos, etc. The Forum site uses caching to retain member informatio...

problem with tomcat 5.5 & loading cached data

I've a SmartGWT ListGrid which loads some data using gwt-rpc service calls. My grid has a datasource with a fetch method like this : protected void executeFetch(final String requestId, final DSRequest request, final DSResponse response) { try{ MyServiceAsync myProxy = MyServiceUtil.getProxy(); myProxy.getDataAndFill...

Oracle Coherence - Data change not reflected in cache

I am using Oracle Coherence cache with Java and am running into an issue. When I put something in the cache (like a map) and get it back using a get call and then modify the object (say, add a value to the map), the modified value is not reflected in the cache. i.e. if I issue a get again, I will get the same old object. This does not oc...

ie7 creating problem with cache

Hi all, I've use cache in my code,and after that ie7 is giving js error pop-up which shows "there was a problem while using xmlhttp; not found" The page is running fine on Firefox, Any idea what makes it there in ie7? this is the code DataSet dsProduct = null; Double CachingHrs = Convert.ToDouble(ConfigurationManager.AppSett...

Methods to enable Sql Notification Services

Hi All What is the difference in the following mentioned things, are these used for differnet purposes or are they used collectively for some functionality, can anyone please differentiante among these based on their functionalities: 1) SqlCacheDependencyAdmin.EnableNotifications(ConnStr) 2) AspNet_RegSql.exe -S "ServerName" -d "...

in memory query mono/.net

I'm looking for a recommendation for the following scenario: I'd like to query an in memory store of CRM-like data 1) The store will be loaded completely on startup 2) The store will be kept up to date (assuming a queue here) 3) Queries can be by key, range or partial/wildcard matching on any number of attributes 4) The store needs to s...

ASP.Net Cache sharing

I have an ASP.Net 4.0 web application which very frequently loads data from the database and does heavy calculations on it. I want to cache this loaded and prepared data in a central cache that can be accessed by every user and computer who uses the application. Simple use-case: User 1 accesses webpage, cache is empty, data is loaded/...

How to measure HTTP cache hit rates?

Is it possible to detect HTTP cache hits in order to calculate a cache hit rate? I'd like to add a snippet of code (JavaScript) to a HTML page that reports (AJAX) whether a resource was available from a client's local cache or fetched from server. I'd then compile some stats to give some insight on the effects of my cache tuning. I'm p...

Python cached list

Hi, I have a module which supports creation of geographic objects using a company-standard interface. After these objects are created, the update_db() method is called, and all objects are updated into a database. It is important to have all objects inserted in one session, in order to keep counters and statistics before updating a pro...

Is caching infrequently changed data to speed client application load times an appropriate use of Isolated Storage?

I'm working on an enterprise application re-write using Silverlight. The project is still in its early stages of development, but there is a heavy initial data load on the application start as it pulls several sets of business objects from the server. Some of these data sets are infrequently changed once they're set up by the user; like ...