Do you know how to move the Team Foundation Server cache

Topic(s)
Audience

Everyone

question markThere are a number of reasons why you may want to change the folder that you store the TFS Cache. It can take up “some” amount of room so moving it to another drive can be beneficial. This is the source control Cache that TFS uses to cache data from the database.

 


Moving the Cache is pretty easy and should allow you to organise your server space a little more efficiently. You may also get a performance improvement (although small) by putting it on another drive..

  1. Create a new directory to store the Cache. e.g. “d:TfsCache”

    SNAGHTML1b76e16
    Figure: Create a new folder

  2. Give the local TFS WPG group full control of the directory

    image
    Figure: You need to use the App Tier Service WPG

  3. In the application tier web.config (~Application TierWeb Servicesweb.config) add the following setting (to the appSettings section).

    SNAGHTML1be463c
    Figure: The web.config for TFS is stored in the application folder

    <appsettings>
        ...
        <add value="D:" key="dataDirectory" />
        ...
    </appsettings>

    Figure: Adding this to the web.config will trigger a restart of the app pool

    SNAGHTML1c223fd

    Figure: Your web.config should look something like this

  4. The app pool will automatically recycle and Team Web Access will start using the new location.

If you then download a file (not via a proxy) a folder with a GUID should be created immediately in the folder from #1.  If the folder doesn’t appear, then you probably don’t have permissions set up properly.

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …