प्रशिक्षण
प्रशिक्षण पथ
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
यह ब्राउज़र अब समर्थित नहीं है.
नवीनतम सुविधाओं, सुरक्षा अपडेट और तकनीकी सहायता का लाभ लेने के लिए Microsoft Edge में अपग्रेड करें.
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.
You should clear the Office cache in the following scenarios.
युक्ति
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 Ctrl+F5 to reload the add-in.
नोट
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.
To remove a sideloaded add-in from Outlook on the web, see Sideload Outlook add-ins for testing.
The Office cache can refer to either the web cache or the Wef cache.
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.
Platform | Types of caches to clear | Options to clear the cache |
---|---|---|
Windows | Both the web and Wef caches. There's currently no option to clear one cache without clearing the other. | |
Mac |
|
|
iOS |
|
Depending on your Office host and operating system, you can automatically or manually clear both the web and Wef caches on a Windows computer.
महत्वपूर्ण
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.
नोट
The automatic option is only supported for Excel, PowerPoint, and Word. Outlook only supports the manual option.
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.
To remove all sideloaded add-ins from Excel, Word, and PowerPoint, delete the contents of the following folder.
%LOCALAPPDATA%\Microsoft\Office\16.0\Wef\
If the following folder exists, delete its contents, too.
%userprofile%\AppData\Local\Packages\Microsoft.Win32WebViewHost_cw5n1h2txyewy\AC\#!123\INetCache\
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.
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.
If your Outlook add-in uses the Unified manifest for Microsoft 365, also delete the following folder.
%userprofile%\AppData\Local\Microsoft\Outlook\HubAppFileCache
To clear the cache in new Outlook on Windows, perform the following steps.
Close the Outlook client if it's open.
From a command line, run the following:
olk.exe --devtools
This opens the new Outlook on Windows client and an instance of the Microsoft Edge DevTools.
In the Microsoft Edge DevTools window, select the Network tab.
Select and hold (or right-click) anywhere in the Requests table. Then, select Clear browser cache.
To clear the Office cache on Windows 10 when the add-in is running in Microsoft Edge, use the Microsoft Edge DevTools.
नोट
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 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.
Install the Microsoft Edge DevTools.
Open your add-in in the Office client.
Run the Microsoft Edge DevTools.
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. 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 Clear cache.
If completing these steps doesn't produce the desired result, try selecting Always refresh from server.
You can choose to clear the web or both the web and Wef caches on Mac.
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.
To clear the web cache in Excel, PowerPoint, and Word, use the personality menu of any task pane add-in.
नोट
From the add-in's task pane, choose the personality menu. Then, choose Clear Web Cache.
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
.
युक्ति
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.
Deleting the contents of the ~/Library/Containers/com.microsoft.{host}/Data/Documents/wef
folder removes all sideloaded add-ins from an application.
नोट
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.
~/Library/Containers/com.microsoft.{host}/Data/Library/Caches/
where {host}
is the Office application (e.g., Excel
)~/Library/Containers/com.microsoft.{host}/Data/Library/Application Support/Microsoft/Office/16.0/Wef/
where {host}
is the Office application (e.g., Excel
)~/Library/Containers/com.microsoft.Office365ServiceV2/Data/Caches/com.microsoft.Office365ServiceV2/
~/Library/Containers/com.microsoft.Office365ServiceV2/Data/Library/Caches/com.microsoft.Office365ServiceV2/
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.
Office Add-ins प्रतिक्रिया
Office Add-ins एक ओपन सोर्स प्रोजेक्ट है. प्रतिक्रिया प्रदान करने के लिए लिंक का चयन करें:
प्रशिक्षण
प्रशिक्षण पथ
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization