a·gen·tic a·gil·i·ty

Do you know how to move the Team Foundation Server cache

TL;DR; Learn how to safely move the Team Foundation Server cache to a new drive, update permissions, and configure web.config for better storage management and performance.

Published on
2 minute read
Image
https://nkdagility.com/resources/aF0H8q5h-Yg
Subscribe

Do you know how to move the Team Foundation Server cache There 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” Do you know how to move the Team Foundation Server cache Figure: Create a new folder

  2. Give the local TFS WPG group full control of the directory Do you know how to move the Team Foundation Server cache 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). Do you know how to move the Team Foundation Server cache Figure: The web.config for TFS is stored in the application folder

    ...
    <add value="D:" key="dataDirectory" />
    ...
    
    `
    **Figure: Adding this to the web.config will trigger a restart of the app pool**
    
    [![SNAGHTML1c223fd](images/Do-you-know-how-to-move-the-Team-Foundat_DD94-SNAGHTML1c223fd_thumb-5-5.png)](http://blog.hinshelwood.com/files/2011/05/GWB-Windows-Live-Writer-Do-you-know-how-to-move-the-Team-Foundat_DD94-SNAGHTML1c223fd.png)
    

    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.

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth a conversation. Tell us where you are and what you're trying to change. Martin reads every inquiry and replies personally.

Start the conversation

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Big Data for Humans Logo

Big Data for Humans

Boeing Logo

Boeing

Akaditi Logo

Akaditi

SuperControl Logo

SuperControl

Ericson Logo

Ericson

Bistech Logo

Bistech

Milliman Logo

Milliman

Workday Logo

Workday

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

Teleplan Logo

Teleplan

Epic Games Logo

Epic Games

Lean SA Logo

Lean SA

Higher Education Statistics Agency Logo

Higher Education Statistics Agency

Sage Logo

Sage

Lockheed Martin Logo

Lockheed Martin

Graham & Brown Logo

Graham & Brown

Boxit Document Solutions

Nottingham County Council Logo

Nottingham County Council

Washington Department of Transport Logo

Washington Department of Transport

Royal Air Force Logo

Royal Air Force

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Ghana Police Service Logo

Ghana Police Service

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Freadom Logo

Freadom

MacDonald Humfrey (Automation) Ltd. Logo

MacDonald Humfrey (Automation) Ltd.

Slicedbread Logo

Slicedbread

Kongsberg Maritime Logo

Kongsberg Maritime

Sage Logo

Sage

Jack Links Logo

Jack Links