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.
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..
Create a new directory to store the Cache. e.g. “d:TfsCache”
Figure: Create a new folder
Give the local TFS WPG group full control of the directory
Figure: You need to use the App Tier Service WPG
In the application tier web.config (~Application TierWeb Servicesweb.config) add the following setting (to the appSettings section).
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**
[](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
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.
No related videos found.
If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.
We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.
Jack Links
ALS Life Sciences
SuperControl
Sage
Hubtel Ghana
CR2
Cognizant Microsoft Business Group (MBG)
Microsoft
New Signature
Capita Secure Information Solutions Ltd
MacDonald Humfrey (Automation) Ltd.
Qualco
Trayport
Xceptor - Process and Data Automation
Teleplan
NIT A/S
ProgramUtvikling
DFDS
Washington Department of Transport
Nottingham County Council
Royal Air Force
Ghana Police Service
New Hampshire Supreme Court
Department of Work and Pensions (UK)
Alignment Healthcare
Genus Breeding Ltd
Lockheed Martin
Graham & Brown
DFDS
Xceptor - Process and Data Automation