« Previous Next »

Answered Thread: Flush Server Cache

Last post 08-24-2009 2:17 AM by Leo Tang - MSFT. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 08-18-2009, 6:33 AM

    • cvsayani
    • Not Ranked
    • Joined on 08-18-2009, 10:19 AM
    • Posts 1

    Flush Server Cache

    Hi,

    I have my web site on a web farm.  Each server with in the web farm has a copy of the runtime.  Every time I make a release,

    1. I pause IIS on the web server and see that there are no connections and take it out of the server pool.

    2. Stop IIS

    3. Copy the runtime files

    4. Clear all the files in 'Temporary ASP.NET Files' folder

    5. Start IIS.

    6. Test the web site

    7.  Add it back to the server pool in the web farm.

    Repeat this step for each server in the farm.

    Obviously, this is getting very tedious.  I scripted MS Deploy so that I copy on one server and the others are automatically synchronized.

    But my problem is I want to avoid Clearing Temporary ASP.NET Files.  This always requires IIS to stop.  Is there a way to automate this process?

    Can anybody help?

    Thanks.

  • 08-24-2009, 2:17 AM In reply to

    Answered Re: Flush Server Cache

    Hi,

    Normally, you do not need to manual clear the files in 'Temporary ASP.NET Files' folder. "ASP.NET dynamic compilation enables you to modify your source code without having to explicitly compile your code before you deploy your Web application. If you modify a source file, ASP.NET automatically recompiles the file and updates all linked resources. The IIS server does not have to be restarted for the changes to take effect unless the <processModel> section has been changed".

    For more detailed information, you can refer to:
    Understanding ASP.NET Dynamic Compilation
    http://msdn.microsoft.com/en-us/library/ms366723.aspx

    Is there any specific reason you need to clear 'Temporary ASP.NET Files' folder or any error you encounter without clear the folder ?

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)
Microsoft Communities