You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Office cache** stores resources and data used by Office Add-ins. This cache prevents an add-in from repeatedly downloding the resources it needs, thereby improving its performance.
112
+
113
+
See also: [web cache](#web-cache), [Wef cache](#wef-cache).
**Office desktop client** refers to an Office application that runs natively on Windows or on Mac. The Office desktop clients that support Office Add-ins are Excel on Windows and on Mac, Outlook on Windows ([new](https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627) and classic) and on Mac, PowerPoint on Windows and on Mac, Project on Windows, and Word on Windows and on Mac.
@@ -188,12 +194,24 @@ See also: [Long-Term Service Channel (LTSC)](#long-term-service-channel-ltsc), [
188
194
189
195
See also: [add-in](#add-in).
190
196
197
+
## web cache
198
+
199
+
The **web cache** temporarily stores web-based resources and data used by an individual Office Add-in.
200
+
201
+
See also: [Office cache](#office-cache), [Wef cache](#wef-cache).
202
+
191
203
## webview
192
204
193
205
A **webview** is an element or view that displays web content inside an application. Content add-ins and task panes both contain embedded web browsers and are examples of webviews in Office Add-ins.
194
206
195
207
See also: [content add-in](#content-add-in), [task pane](#task-pane).
196
208
209
+
## Wef cache
210
+
211
+
The **Wef cache** locally stores resources and data for all installed Office Add-ins.
212
+
213
+
See also: [Office cache](#office-cache), [web cache](#web-cache).
214
+
197
215
## XLL
198
216
199
217
An **XLL** add-in is an Excel add-in file that provides user-defined functions and has the file extension **.xll**. An XLL file is a type of dynamic link library (DLL) file that can only be opened by Excel. XLL add-in files must be written in C or C++. Custom functions are the modern equivalent of XLL user-defined functions. Custom functions offer support across platforms and are backwards compatible with XLL files. See [Extend custom functions with XLL user-defined functions](/office/dev/add-ins/excel/make-custom-functions-compatible-with-xll-udf) for more information.
Copy file name to clipboardExpand all lines: docs/testing/clear-cache.md
+76-20Lines changed: 76 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,62 @@
1
1
---
2
2
title: Clear the Office cache
3
3
description: Learn how to clear the Office cache on your computer.
4
-
ms.date: 09/09/2024
4
+
ms.date: 02/04/2025
5
5
ms.localizationpriority: high
6
6
---
7
7
8
8
# Clear the Office cache
9
9
10
-
To remove an add-in that you've previously sideloaded on Windows, Mac, or iOS, you need to clear the Office cache on your computer.
10
+
The Office cache stores resources and data used by Office Add-ins. By accessing stored resources, an add-in's performance is improved as it avoids redownloading these resources when needed.
11
11
12
-
Additionally, if you make changes to your add-in's manifest (for example, update file names of icons or text of add-in commands), you should clear the Office cache and then re-sideload the add-in using an updated manifest. Doing so allows Office to render the add-in as it's described by the updated manifest.
12
+
You should clear the Office cache in the following scenarios.
13
+
14
+
- When you want to remove an add-in that you've previously sideloaded on Windows, Mac, or iOS.
15
+
- When you've updated the manifest (for example, to update the file names of icons or text of add-in commands). This ensures that you're using the latest version of the add-in.
16
+
> [!TIP]
17
+
> For add-ins that implement a task pane, if you only want the sideloaded add-in to reflect recent changes to its HTML or JavaScript source files, you shouldn't need to clear the cache. Instead, put focus in the add-in's task pane (by selecting anywhere within the task pane). Then, select <kbd>Ctrl</kbd>+<kbd>F5</kbd> to reload the add-in.
18
+
- When you want to resolve issues or errors when running the add-in.
13
19
14
20
> [!NOTE]
15
21
> To remove a sideloaded add-in from Excel, OneNote, PowerPoint, or Word on the web, see [Sideload Office Add-ins in Office on the web for testing: Remove a sideloaded add-in](sideload-office-add-ins-for-testing.md#remove-a-sideloaded-add-in).
22
+
>
23
+
> To remove a sideloaded add-in from Outlook on the web, see [Sideload Outlook add-ins for testing](../outlook/sideload-outlook-add-ins-for-testing.md#remove-a-sideloaded-add-in).
24
+
25
+
## Types of caches
26
+
27
+
The Office cache can refer to either the web cache or the Wef cache.
28
+
29
+
- The **web cache** temporarily stores web-based resources and data used by an individual Office Add-in.
30
+
- The **Wef cache** locally stores resources and data for all installed Office Add-ins.
31
+
32
+
The following table outlines which Office cache types can be cleared on different platforms. It also provides links to instructions on how to clear a specific cache.
33
+
34
+
| Platform | Types of caches to clear | Options to clear the cache |
35
+
| ----- | ----- | ----- |
36
+
| Windows | Both the web and Wef caches. There's currently no option to clear one cache without clearing the other. | <ul><li>[Automatically clear the cache](#automatically-clear-the-cache)</li><li>[Manually clear the cache](#manually-clear-the-cache)</li><li>[Use the Microsoft Edge developer tools on Windows 10](#use-the-microsoft-edge-developer-tools-on-windows-10)</li></ul> |
37
+
| Mac | <ul><li>Web</li><li>Both web and Wef caches</li></ul> | <ul><li>**Web**: [Use the personality menu to clear the web cache](#clear-the-web-cache)</li><li>**Web and Wef**: [Clear the web and Wef caches on Mac](#clear-the-web-and-wef-caches)</li></ul> |
38
+
| iOS | <ul><li>Web</li></ul> | <ul><li>[Use JavaScript to clear the cache on iOS](#clear-the-office-cache-on-ios)</li></ul> |
16
39
17
40
## Clear the Office cache on Windows
18
41
19
-
There are three ways to clear the Office cache on a Windows computer: automatically, manually, and using the Microsoft Edge developer tools. The methods are described in the following subsections.
42
+
Depending on your Office host and operating system, you can automatically or manually clear both the web and Wef caches on a Windows computer.
20
43
21
-
### Automatically
44
+
> [!IMPORTANT]
45
+
> On Windows, the automatic and manual options clear both the web and Wef caches. There's currently no option to clear one cache without clearing the other.
22
46
23
-
This method is recommended for add-in development computers. If your Office on Windows version is 2108 or later, the following steps configure the Office cache to be cleared the next time Office is reopened.
47
+
### Automatically clear the cache
24
48
25
49
> [!NOTE]
26
-
> The automatic method is not supported for Outlook.
50
+
> The automatic option is only supported for Excel, PowerPoint, and Word. Outlook only supports the [manual option](#manually-clear-the-cache-in-outlook).
27
51
28
-
1. From the ribbon of any Office host except Outlook, navigate to **File** > **Options** > **Trust Center** > **Trust Center Settings** > **Trusted Add-in Catalogs**.
29
-
1. Select the checkbox **Next time Office starts, clear all previously-started web add-ins cache**.
52
+
This method is recommended for add-in development computers. If your Office on Windows version is 2108 or later, the following steps configure the Office cache to be cleared the next time Office is reopened.
30
53
31
-
### Manually
54
+
1. From the ribbon of Excel, PowerPoint, or Word, navigate to **File** > **Options** > **Trust Center** > **Trust Center Settings** > **Trusted Add-in Catalogs**.
55
+
1. Select the **Next time Office starts, clear all previously-started web add-ins cache** checkbox.
56
+
1. Select **OK**.
57
+
1. Restart Excel, PowerPoint, or Word.
32
58
33
-
The manual method for Excel, Word, and PowerPoint is different from Outlook.
59
+
### Manually clear the cache
34
60
35
61
#### Manually clear the cache in Excel, Word, and PowerPoint
36
62
@@ -40,15 +66,15 @@ To remove all sideloaded add-ins from Excel, Word, and PowerPoint, delete the co
40
66
%LOCALAPPDATA%\Microsoft\Office\16.0\Wef\
41
67
```
42
68
43
-
If the following folder exists, delete its contents too.
69
+
If the following folder exists, delete its contents, too.
To remove a sideloaded add-in from Outlook, use the steps outlined in [Sideload Outlook add-ins for testing](../outlook/sideload-outlook-add-ins-for-testing.md) to find the add-in in the **Custom add-ins** section of the dialog box that lists your installed add-ins. Choose the ellipsis (`...`) for the add-in and then choose **Remove** to remove that specific add-in.
77
+
Before attempting to clear the cache in Outlook, first try to remove the sideloaded add-in using the steps outlined in [Sideload Outlook add-ins for testing](../outlook/sideload-outlook-add-ins-for-testing.md#remove-a-sideloaded-add-in).
52
78
53
79
If this add-in removal doesn't work, then delete the contents of the `Wef` folder as noted for Excel, Word, and PowerPoint in [Manually clear the cache in Excel, Word, and PowerPoint](#manually-clear-the-cache-in-excel-word-and-powerpoint).
54
80
@@ -71,12 +97,9 @@ To clear the cache in [new Outlook on Windows](https://support.microsoft.com/off
71
97
1. In the Microsoft Edge DevTools window, select the **Network** tab.
72
98
1. Select and hold (or right-click) anywhere in the **Requests** table. Then, select **Clear browser cache**.
73
99
74
-
### Using the Microsoft Edge developer tools
75
-
76
-
To clear the Office cache on Windows 10 when the add-in is running in Microsoft Edge, you can use the Microsoft Edge DevTools.
100
+
### Use the Microsoft Edge developer tools on Windows 10
77
101
78
-
> [!TIP]
79
-
> If you only want the sideloaded add-in to reflect recent changes to its HTML or JavaScript source files, you shouldn't need to clear the cache. Instead, just put focus in the add-in's task pane (by clicking anywhere within the task pane) and then press <kbd>Ctrl</kbd>+<kbd>F5</kbd> to reload the add-in.
102
+
To clear the Office cache on Windows 10 when the add-in is running in Microsoft Edge, use the Microsoft Edge DevTools.
80
103
81
104
> [!NOTE]
82
105
> To clear the Office cache using the following steps, your add-in must have a task pane. If your add-in is a UI-less add-in -- for example, one that uses the [on-send](../outlook/outlook-on-send-addins.md) feature -- you'll need to add a task pane to your add-in that uses the same domain for [SourceLocation](/javascript/api/manifest/sourcelocation), before you can use the following steps to clear the cache.
@@ -101,11 +124,43 @@ To clear the Office cache on Windows 10 when the add-in is running in Microsoft
101
124
102
125
## Clear the Office cache on Mac
103
126
104
-
[!include[additional cache folders on Mac](../includes/mac-cache-folders.md)]
127
+
You can choose to clear the web or both the web and Wef caches on Mac.
128
+
129
+
### Clear the web cache
130
+
131
+
Normally, the web cache is cleared by reloading the add-in. If more than one add-in exists in the same document, the process of automatically clearing the cache on reload might not be reliable.
132
+
133
+
To clear the web cache in Excel, PowerPoint, and Word, use the personality menu of any task pane add-in.
134
+
135
+
> [!NOTE]
136
+
>
137
+
> - The personality menu in task panes is only supported in Excel, PowerPoint, and Word. Because it isn't supported in Outlook, you must use the [option to clear both the web and Wef caches instead](#clear-the-web-and-wef-caches).
138
+
> - The personality menu is only shown in macOS Version 10.13.6 or later.
139
+
140
+
From the add-in's task pane, choose the personality menu. Then, choose **Clear Web Cache**.
141
+
142
+

143
+
144
+
### Clear the web and Wef caches
145
+
146
+
To clear both the web and Wef caches on Mac, delete the contents of the `~/Library/Containers/com.Microsoft.OsfWebHost/Data/` and `~/Library/Containers/com.microsoft.{host}/Data/Documents/wef` folders. Replace `{host}` with the Office application, such as `Excel`.
147
+
148
+
> [!TIP]
149
+
> Use the terminal or Finder to search for the specified folders. To look for these folders via Finder, you must set Finder to show hidden files. Finder displays the folders inside the **Containers** directory by product name, such as **Microsoft Excel** instead of **com.microsoft.Excel**.
150
+
151
+
Deleting the contents of the `~/Library/Containers/com.microsoft.{host}/Data/Documents/wef` folder removes all sideloaded add-ins from an application.
152
+
153
+
> [!NOTE]
154
+
> If the `~/Library/Containers/com.Microsoft.OsfWebHost/Data/` folder doesn't exist, check for the following folders via terminal or Finder. If found, delete the contents of each folder.
155
+
>
156
+
> - `~/Library/Containers/com.microsoft.{host}/Data/Library/Caches/` where `{host}` is the Office application (e.g., `Excel`)
157
+
> - `~/Library/Containers/com.microsoft.{host}/Data/Library/Application Support/Microsoft/Office/16.0/Wef/` where `{host}` is the Office application (e.g., `Excel`)
To clear the Office cache on iOS, call `window.location.reload(true)` from JavaScript in the add-in to force a reload. Alternatively, reinstall Office.
163
+
To clear the web cache on iOS, call `window.location.reload(true)` from JavaScript in the add-in. This forces the add-in to reload. Alternatively, reinstall Office.
109
164
110
165
## See also
111
166
@@ -117,3 +172,4 @@ To clear the Office cache on iOS, call `window.location.reload(true)` from JavaS
117
172
- [Sideload Office Add-ins for testing](sideload-office-add-ins-for-testing.md)
Copy file name to clipboardExpand all lines: docs/testing/debug-office-add-ins-on-ipad-and-mac.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Debug Office Add-ins on a Mac
3
3
description: Learn how to use a Mac to debug Office Add-ins.
4
-
ms.date: 07/09/2024
4
+
ms.date: 02/04/2025
5
5
ms.localizationpriority: medium
6
6
---
7
7
@@ -45,4 +45,4 @@ Then, open the Office application and [sideload your add-in](sideload-an-office-
45
45
46
46
## Clearing the Office application's cache on a Mac
47
47
48
-
[!include[additional cache folders on Mac](../includes/mac-cache-folders.md)]
48
+
Add-ins are often cached in Office on Mac for performance reasons. For guidance on how to clear the Office cache on Mac, see [Clear the Office cache on Mac](clear-cache.md#clear-the-office-cache-on-mac).
0 commit comments