I have a web application that stores global data in the HttpContext.Current.Cache. I also have the application email me when cache items are reloaded. Since moving the application to IIS7 I'm getting a lot more cache reloads than I ever did in the past. I've double checked that my app pool settings are the same from IIS6 to 7, but still ...
We are currently having an issue with cache settings on a shared workstation at one of our client sites. Basically, they had set their IE browser on their machine to "never" for when to check for new versions of a site. This causes some of our pages to show another user's data after one user logs out and logs back in. What are my options...
I understand there isn't a way to interrogate a users IE settings directly due to security reasons, but is there a way to derive this answer with some other mechanism? I would like to stop a user from using my site if the setting "Check for newer versions of stored pages" is set to "Never". Any suggestions?
Is there a way I could te...
I'm using Fiddler2 to see page load times. There are lots of jpg,gif,png,etc. listed. Most return code 304 which I believe means that the browser does not have to download that again. It seems that even though it does not download again, there is overhead in the checking. I have 33 such objects and round trip just to check is close to 40...
hi dears,
I used the cach system on the content.aspx page like below:
<%@ OutputCache Duration="300" VaryByParam="id;mediaId" %>
When the new page requested by client, I got the "NullReferenceException: "Object reference not set to an instance of an object" as the same problem that explain in this page -> http://support.microsoft.com/...
I have to maintain an old asp.net application, and need to disable all access to the Cache object for debugging purposes. There are hundreds of pages that use the structure:
if (Cache["myobject"] != null)
{
//get data from the cache
//...
}
else
{
//go to the DB, load the cache and send it to the client
}
I know I should refa...
It seems the ClearCache method doesn't quite work for IE in WatiN. at least, it doesn't work for things you've cached SINCE you've opened the instance.
Any suggestions?
I tried using ReOpen, but it errors. It also seems to do the same thing as
Browser.Close();
Browser = new IE();
Which is slow. My tests take just about twice as l...
I'm using an outputcache page directive to cache values based on VaryByParam. Is there a way I can prepopulate the cache when the web application starts up for a set of common params, instead of having to wait for a user to hit the page? Or do I just need to write a script that hits all the pages I want cached? Ideally, I can do it serv...
We have Data Mart DB with performance data which we need to show in a SharePoint application. The data will change only once a day. We need to show a lot of graphs as part of the data. We have kind of decided to use Dundas. But we are planning to explore other charting solutions that I'd like to know from the group.
What is the best wa...
In a Delphi application we are working on we have a big structure of related objects. Some of the properties of these objects have values which are calculated at runtime and I am looking for a way to cache the results for the more intensive calculations. An approach which I use is saving the value in a private member the first time it is...
images are stored in database. I am thinking of storing top 50 images in Asp.net Cache , What imapact does it have memory or overall sites performance. Each image is 200 x 150 in size. Site is hosted , hosting plan is not that high. 15 $ /month.
...
I have an application written in PHP/Javascript which uses AJAX extensively. I am concerned that the default caching behaviour for IE7 and IE8 set for our organisation, of 'Automatic' will scupper my application.
There are approximately 1500 users and my IT department say that they won't change the caching option in IE for all those us...
Does ASP.NET support the notion of multiple caches with the built-in caching? My end goal is to be able to pull out all items of a certain type from the cache. This could be done with a separate cache per type, or through some sort of naming convention. Ideally, I'd be able to use LINQ in the following manner:
var items = (from item in ...
We have several sites that are mostly content managed using a sql database backend. these sites are most of the time serving up static information unless users change the content by voting or updating (similar to SO). These sites all have master pages where user specific information is often displayed at the top of each page (also simi...
I have a UITableView that is loaded from an NSMutableArray. The array is populated by data that I get from a RESTful web service request. In order to speed up the delivery of data to the user, I'm using a couple other NSArrays to hold a cache of the next sets of data.
What I've done is when i'm nearing the end of my current set, in ...
I'd like to be able to use the html5 cache manifest to store images locally on an iPhone that is visiting the page via a UIWebView within an app.
I've set up a sample that I think conforms to the specs, and appears to work in safari 4 and mobile safari, but not in my app's UIWebView.
The sample html is set up at http://bynomial.com/htm...
We need to return subset of records and for that we use the following command:
using (SqlCommand command = new SqlCommand(
"SELECT ID, Name, Flag, IsDefault FROM (SELECT ROW_NUMBER() OVER (ORDER BY @OrderBy DESC) as Row, ID, Name, Flag, IsDefault FROM dbo.Languages) results WHERE Row BETWEEN ((@Page - 1) * @ItemsPerP...
I have a bunch of files that are being read by another bunch of threads. Some parts of files get read multiple times using multiple file opens. I'd like to have a sort of caching file stream.
If part of the file was read before, all subsequent reads would come from cache, otherwise file part would be read and content added to cache.
F...
A service tier that implements its persistence based on JPA can profit hugely from the second-level cache that is managed transparently by the JPA provider (e.g. Hibernate, Toplink/Toplink Essentials etc.). When this cache is activated, it holds instances of the persistent classes as soon as they were loaded from the database for the fir...
Which would be the best way to achieve a fast hash / session storage with one of these three ways?
Way 1:
Create a memory table in MySQL that stores a hash and a timestamp when the entry was created. A MySQL event automatically deletes all entries older than 20 minutes. This should be pretty fast because all data is stored in memory, bu...