all groups > iis ftp > december 2005 >
You're in the

iis ftp

group:

File caching problem


File caching problem m.piceni NO[at]SPAM newsgroup.nospam
12/19/2005 6:29:50 PM
iis ftp:
Hi,

I've Windows 2000 SP4 with IIS5 and I'm hosting an FTP site. I noticed that,
if I edit a TXT file on my FTP site, the users still download the old
version of the file. The strange is that the properties of the file
(expecially the size) are from the new one, but the file donwloaded (GET) is
the old one.
What may be wrong ? Is there any cache I can disable ?

Thanks.

Massimo.

RE: File caching problem v-yren NO[at]SPAM microsoft.com (
12/20/2005 3:22:38 AM
Hi Massimo,

Welcome to MSDN newsgroup!

From your description, I think the problem is caused by IIS caching
function. I suggest you restart IIS service after modification. And try to
download the file again to check whether problem still occurred.

If you don't want to do this every time, you could consider disabling cache
function in IIS. But one thing must be attention is the performance of IIS
(includes FTP, SMTP and web site) will be affected if the cache is disabled.

You can perform the below step to disable the cache:
1. Click "Start", click "Run", type "regedit" (without the quotation
marks), and then click "OK".
2. Locate and then click the following registry subkey:

HEKY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters
3. Right-click "Parameters", point to "New", and then clicks "DWORD Value".
4. In the "New Value #1" box, type "DisableMemoryCache" (without the
quotation marks), and then press ENTER.
5. Right-click "DisableMemoryCache", and then clicks "Modify".
6. In the "Value data" box, type "1" (without the quotation marks), and
then click "OK".
7. Quit Registry Editor, and then restart the computer or run IISREST from
the command line.


I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
Re: File caching problem m.piceni NO[at]SPAM newsgroup.nospam
12/20/2005 11:32:14 AM
Hi Yuan and Bernard,

thanks for the infos. I tryed disabling the cache and effectively works. Now
I'll try to fine tune the cache retention period to have better
performances.

Thanks a gain an Wish you a Merry Xmas and an Happy New Year.

Massimo.

"Bernard Cheah [MVP]" <qbernard@hotmail.com.discuss> ha scritto nel
messaggio news:%23Vlw7XUBGHA.2036@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

Re: File caching problem v-yren NO[at]SPAM microsoft.com (
12/20/2005 12:35:11 PM
Hi Massimo,

I'm glad to hear your problem has been resolved. If you have any problem in
the future, I will be happy to be of further assistance.

Merry Christmas and Happy New Year!

Yuan Ren [MSFT]
Microsoft Online Support
Re: File caching problem Bernard Cheah [MVP]
12/20/2005 5:15:47 PM
This will have certain performance impact. I would first try setting the
cache period, how long after you upload and it still cached?
To control cache time, refer
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\ObjectCacheTTL
DWORD <value_in_seconds>


--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://www.msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button