- Electron Updater
- Microsoft Auto Updater Mac Clear Cache Windows 10
- Mac Clear Cache Terminal
- Electron Updater Server
Apr 14, 2017 Caches store information that Mac system or applications need to quickly launch service. Generally, you may not notice this part of data in your MacBook Air until you need to delete unneeded files to get more space or clear cache to fix software problems.
-->你可以通过清除计算机上的 Office 缓存来删除以前在 Windows、Mac 或 iOS 上旁加载的加载项。You can remove an add-in that you've previously sideloaded on Windows, Mac, or iOS by clearing the Office cache on your computer.
此外,如果你对加载项的清单进行了更改(例如,更新图标的文件名或加载项命令的文本),则应清除 Office 缓存,然后使用更新后的清单重新旁加载此加载项。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 updated manifest.执行此操作后,Office 将按照更新清单中所述的方式呈现该加载项。Doing so will allow Office to render the add-in as it's described by the updated manifest.
清除 Windows 上的 Office 缓存Clear the Office cache on Windows
若要从 Excel、Word 和 PowerPoint 中删除所有旁加载外接程序,请删除该文件夹的内容:To remove all sideloaded add-ins from Excel, Word, and PowerPoint, delete the contents of the folder:
若要从 Outlook 中删除旁加载外接程序,请使用旁加载 Outlook 外接程序中概述的用于测试的步骤,在列出已安装的外接程序的对话框的 '自定义外接程序' 部分中查找该外接程序
..
。选择外接程序的省略号(),然后选择 '删除' 以删除该特定外接程序。To remove a sideloaded add-in from Outlook, use the steps outlined in Sideload Outlook add-ins for testing 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.另外,若要在 Microsoft Edge 中运行加载项时清除 Windows 10 上的 Office 缓存,可使用 Microsoft Edge 开发工具。Additionally, to clear the Office cache on Windows 10 when the add-in is running in Microsoft Edge, you can use the Microsoft Edge DevTools.
提示
如果只是希望旁加载的加载项反映对其 HTML 或 JavaScript 源文件的最新更改,则应该不需要使用以下步骤来清除缓存。If you're just wanting the sideloaded add-in to reflect recent changes to its HTML or JavaScript source files, you shouldn't need to use the following steps to clear the cache.相反,只需将焦点放在加载项的任务窗格中(通过单击任务窗格中的任意位置),然后按 F5 以重新加载该加载项。Instead, just put focus in the add-in's task pane (by clicking anywhere within the task pane) and then press F5 to reload the add-in.
备注
若要使用以下步骤清除 Office 缓存,加载项必须具有任务窗格。To clear the Office cache using the following steps, your add-in must have a task pane.如果加载项是无 UI 的加载项(例如,使用 on-send 功能的加载项),则需要先为加载项添加一个任务窗格,且该任务窗格使用与 SourceLocation 相同的域,然后才能使用以下步骤来清除缓存。If your add-in is a UI-less add-in -- for example, one that uses the on-send feature -- you'll need to add a task pane to your add-in that uses the same domain for SourceLocation, before you can use the following steps to clear the cache.
- 安装 Microsoft Edge 开发工具。Install the Microsoft Edge DevTools.
- 在 Office 客户端中打开加载项。Open your add-in in the Office client.
- 运行 Microsoft Edge 开发工具。Run the Microsoft Edge DevTools.
- 在 Microsoft Edge 开发工具中,打开“本地”选项卡。加载项将按其名称列出。In the Microsoft Edge DevTools, open the Local tab. Your add-in will be listed by its name.
- 选择加载项名称以将调试器连接到加载项。Select the add-in name to attach the debugger to your add-in.当调试器连接到加载项时,将打开一个新的“Microsoft Edge 开发工具”窗口。A new Microsoft Edge DevTools window will open when the debugger attaches to your add-in.
- 在新窗口的“网络”选项卡上,选择“清除缓存”按钮。On the Network tab of the new window, select the Clear cache button.
- 如果完成这些步骤后未获得想要的结果,还可以选择“始终从服务器中刷新”按钮。If completing these steps doesn't produce the desired result, you can also select the Always refresh from server button.
Electron Updater
清除 Mac 上的 Office 缓存Clear the Office cache on Mac
由于性能方面的原因,外接程序通常缓存在 Office for Mac 中。Add-ins are often cached in Office for Mac, for performance reasons.通常情况下,将通过重载外接程序清除缓存。Normally, the 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.
您可以使用任何任务窗格外接程序的 '个性' 菜单清除缓存。You can clear the cache by using the personality menu of any task pane add-in.
- 选择 '个性' 菜单。Choose the personality menu.然后选择 '清除 Web 缓存'。Then choose Clear Web Cache.备注您必须运行 macOS 版本10.13.6 或更高版本,才能看到 '个性' 菜单。You must run macOS version 10.13.6 or later to see the personality menu.
Microsoft Auto Updater Mac Clear Cache Windows 10
您还可以通过删除该
~/Library/Containers/com.Microsoft.OsfWebHost/Data/
文件夹的内容来手动清除缓存。You can also clear the cache manually by deleting the contents of the ~/Library/Containers/com.Microsoft.OsfWebHost/Data/
folder.备注
Mac os sierra. 如果该文件夹不存在,请检查以下文件夹,如果找到,则删除该文件夹的内容:If that folder doesn't exist, check for the following folders and if found, delete the contents of the folder:
~/Library/Containers/com.microsoft.{host}/Data/Library/Caches/
其中{host}
,是 Office 主机(例如,Excel
)~/Library/Containers/com.microsoft.{host}/Data/Library/Caches/
where{host}
is the Office host (e.g.,Excel
)~/Library/Containers/com.microsoft.{host}/Data/Library/Application Support/Microsoft/Office/16.0/Wef/
其中{host}
,是 Office 主机(例如,Excel
)~/Library/Containers/com.microsoft.{host}/Data/Library/Application Support/Microsoft/Office/16.0/Wef/
where{host}
is the Office host (e.g.,Excel
)com.microsoft.Office365ServiceV2/Data/Caches/com.microsoft.Office365ServiceV2/
清除 iOS 上的 Office 缓存Clear the Office cache on iOS
若要清除 iOS 上的 Office 缓存,请从加载项中的 JavaScript 调用
window.location.reload(true)
以强制重新加载。To clear the Office cache on iOS, call window.location.reload(true)
from JavaScript in the add-in to force a reload.或者,可以重新安装 Office。Alternatively, you can reinstall Office.另请参阅See also
-->Because add-ins are developed using HTML and JavaScript, they are designed to work across platforms, but there might be subtle differences in how different browsers render the HTML. This article describes how to debug add-ins running on a Mac.
Debugging with Safari Web Inspector on a Mac
If you have add-in that shows UI in a task pane or in a content add-in, you can debug an Office Add-in using Safari Web Inspector.
To be able to debug Office Add-ins on Mac, you must have Mac OS High Sierra AND Mac Office Version: 16.9.1 (Build 18012504) or later. If you don't have an Office Mac build, you can get one by joining the Office 365 Developer Program.
To start, open a terminal and set the
OfficeWebAddinDeveloperExtras
property for the relevant Office application as follows:defaults write com.microsoft.Word OfficeWebAddinDeveloperExtras -bool true
defaults write com.microsoft.Excel OfficeWebAddinDeveloperExtras -bool true
defaults write com.microsoft.Powerpoint OfficeWebAddinDeveloperExtras -bool true
defaults write com.microsoft.Outlook OfficeWebAddinDeveloperExtras -bool true
Then, open the Office application and sideload your add-in. Right-click the add-in and you should see an Inspect Element option in the context menu. Select that option and it will pop the Inspector, where you can set breakpoints and debug your add-in.
Note
If you're trying to use the inspector and the dialog flickers, update Office to the latest version. If that doesn't resolve the flickering, try the following workaround:
- Reduce the size of the dialog.
- Choose Inspect Element, which opens in a new window.
- Resize the dialog to its original size.
- Use the inspector as required.
Clearing the Office application's cache on a Mac
Add-ins are often cached in Office for Mac, for performance reasons. Normally, the 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.
You can clear the cache by using the personality menu of any task pane add-in.
- Choose the personality menu. Then choose Clear Web Cache.NoteYou must run macOS version 10.13.6 or later to see the personality menu.
You can also clear the cache manually by deleting the contents of the
~/Library/Containers/com.Microsoft.OsfWebHost/Data/
folder.Mac Clear Cache Terminal
Note
If that folder doesn't exist, check for the following folders and if found, delete the contents of the folder:
Electron Updater Server
~/Library/Containers/com.microsoft.{host}/Data/Library/Caches/
where{host}
is the Office host (e.g.,Excel
)~/Library/Containers/com.microsoft.{host}/Data/Library/Application Support/Microsoft/Office/16.0/Wef/
where{host}
is the Office host (e.g.,Excel
)com.microsoft.Office365ServiceV2/Data/Caches/com.microsoft.Office365ServiceV2/