Clear the widget cache
Overview
Two methods of clearing the widget cache are available: using the Home page administrative user interface or using a NewsWidgetCatalogService command.
On the Home page > Administration page click Refresh cache to clear the Widget Container-related caches. This action forces a cached copy of a gadget or iWidget from the Widget Container cache. Refreshing the cache typically is used during development to allow a user to see changes to the gadget or iWidget immediately.
Run NewsWidgetCatalogService.clearWidgetCaches() to clear cached widget.xml files from the server without needing to restart the system. If a gadget or iWidget.xml has been updated and to force it to be reread by the system, simply call this command :
Clear cached widget.xml file
- cd app_server_root/profiles/Dmgr01/binwhere
- Start the News Jython script interpreter :
execfile("newsAdmin.py")
If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.
- Clear the cache:
wsadmin>NewsWidgetCatalogService.clearWidgetCaches()
Parent topic:
Administer the Widget container