IIS FTP Server - File caching problem

This is Interesting: Free IT Magazines  
Home > Archive > IIS FTP Server > December 2005 > File caching problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author File caching problem

2005-12-19, 6:02 pm

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.


Yuan Ren[MSFT]

2005-12-20, 2:50 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\CurrentControl
Set\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

Bernard Cheah [MVP]

2005-12-20, 8:00 am

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\CurrentControl
Set\Services\InetInfo\Parameters\ObjectC
acheTTL
DWORD <value_in_seconds>


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


""Yuan Ren[MSFT]"" <v-yren@microsoft.com> wrote in message
news:OPB%23oSRBGHA.2560@TK2MSFTNGXA02.phx.gbl...
> 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\CurrentControl
Set\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
>



2005-12-20, 8:00 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...
> 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\CurrentControl
Set\Services\InetInfo\Parameters\ObjectC
acheTTL
> DWORD <value_in_seconds>
>
>
> --
> Regards,
> Bernard Cheah
> http://www.iis-resources.com/
> http://www.iiswebcastseries.com/
> http://www.msmvps.com/blogs/bernard/
>
>
> ""Yuan Ren[MSFT]"" <v-yren@microsoft.com> wrote in message
> news:OPB%23oSRBGHA.2560@TK2MSFTNGXA02.phx.gbl...
>
>



Yuan Ren[MSFT]

2005-12-20, 8:00 am

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com