Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

How to move the Microsoft Office File Cache when using Office 2016 and the Next Generation OneDrive Sync Client?

I have Office 2016 and use the Next Generation OneDrive Sync Client, both running under Windows 10.

My computer has two drives with one partition each:

  • C: a small solid state disk for OS, applications and some hand-selected files that require high access speeds
  • E: a large hard disk drive

My OneDrive libraries are set to sync with folders on drive E:.

I have attempted to upload 135 GB data spread over 85,377 files in 9,273 folders into one of my OneDrive libraries. During upload I realized that OneDrive builds up a huge OfficeFileCache in C:\Users\Hauke\AppData\Local\Microsoft\Office\15.0\OfficeFileCache. The OfficeFileCache grew to 25 GB in size - and then my C: drive was full. When this point was reached, OneDrive stopped working with the helpful error message "OneDrive stopped working".

I want to keep my OfficeFileCache, and especially I want to keep cached files for the default 14 days. But I want the cache to be built on the E: drive.

So my question boils down to: How do I tell my system to build the OfficeFileCache on the E: drive instead of the C: drive?

By the way: I already tried to modify the system registry as suggested here: Unfortunately the key OfficeCacheLocation does not seem to be respected by Office 2016 or the Next Generation OneDrive Sync Client, neither in HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet nor in the ...\16.0\... one.