ASP >> Possible IIS cache issue - ASP ghost entries

by Roland Hall » Wed, 12 Jan 2005 09:50:16 GMT

Scenario:

E-commerce:

User clicks on a button [BUY NOW], item is added to cart. User can either
continue shopping or view cart. The order here doesn't matter. When user
views cart, two items are added, the one selected and the last one in the
product file. The product file is a CSV file.

The last entry is called BAD-Product. It is a debug entry during site
development so the developer knows the product name is entered wrong, i.e.
misspelled. If the name was omitted an error would occur so there is a
name.

This only happens with Firefox and Netscape. IE experiences no problems.
The last entry is not added.

Accidental temporary solution:

In review of the code, a debug line was put in to make validate the product
item being returned. After saving the page (.asp add item page), the error
disappeared. The debug line was then commented out and the error still has
no resurfaced.

Additional sites on the same server also experienced the same issue.
Copying over the .asp file to the other sites solved the issue.

I repeat, only the debug line was added to show the product item to the
screen. It leaves me to believe IIS cache was involved somehow as I refuse
to accept adding a debug line and then commenting it out has any difference.
I have verified every step of the code and this was working correct without
error during development. The sites are still not in production and it is
possible the BAD-Product has been selected before.

Is it possible the cache issue was on the client or are there settings in
IIS cache that may affect this? Should cache be removed on all e-commerce
pages that require constant changes?

TIA...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



Similar Threads

1. File Cache and ASP Cache issues

Anybody?

If I may add: On our development server the file cache counter works and I 
see activity (current files cached), although the Kernel cache (http.sys) is 
still not showing caching even on that machine.

"Moshe Rosenberg" wrote:

> I have a very busy site, and I am having an issue with counters for both the 
> File Cache and the ASP cache:
> 
> The counters for Web Service Cache\Current Files Cached is almost always 0. 
> This should not be, as I understand. IIS should be caching static files in 
> memory.
> 
> Also, the counters for Active Server Pages\Template Cache Hit Ratio is about 
> 60. I understand that it should be over 80. 
> 
> The server has 4GB of memory. Two w3wp processes are using a total of 1gb. 
> The Process\Private bytes counter shows a total of 2gb being used. Is this a 
> memory bottleneck? 
> 
> Any ideas here to get these counters to show better caching ability?

2. IIS 6.0 and ASP.NET caching issues

3. XML Caching in Classic ASP on IIS 6.0

We have a website that reads data from Oracle and creates an XML file. Then 
the site uses that file to access the info faster. On IIS5 we have no 
problems, but on IIS6 we seem to have some caching issuses. This deals with 
the Worker Processes. By default, there is only 1 Worker Process that gets 
recycled after 1700 minutes or so. The problem is, that we will select some 
data from the screen, which opens up another window to update the info. We 
walk through the update process and change some data and it updates the page 
fine. We can even check the XML file and it is changed, but if you choose to 
go back into that data, the dropdowns will reflect whatever was initially in 
the XML not the changes. If I increase the number of Worker Processes and 
shorten their recycle time, this doesn't seem to be a problem, but for every 
request I am generating a 25M file on the server that eventually gets 
recycled. I don't want to load up the memory with useless files, but I want 
our application to reflect the correct data. I really need to do this without 
affecting any other possible web apps that may be on the box. Any advice?

4. IIS caches asp files for too long and delays testing - ASP

5. IIS 6 / ASP Cache will not refresh

6. IIS ASP Caching

7. iis 6 asp cache

I have had to go back to using regular asp for some development work; which has been a major culture shock after .net for so long. Anyway I use windows 2003 standard on my laptop; and i am having nightmare caching problems with regular ASP.

I have hacked my registry in hkey_local_machine/servcies/http/parameters adding as dwords :  MD_VR_NO_CACHE = 1 and URIEnableCache = 0.

I have turned off http_keep_alives in iis default web site properties and set content expiration to immediately.

I have turned off active directory completely (it has been an issue with the gac in asp.net - so worth a shot)

None of these changes have any effect. I have read MS's answer that in 5 seconds the system should reflect any change, and it doesnt. 

If i change the text on the page (not the asp code) the page refreshes immediately ... But that is something that is tough to remember to do each time.

8. IIS 6.0 asp caching