private void clearApplicationCategoryViewerCache(IWContext iwc) { IWCacheManager2 cacheManager = IWCacheManager2.getInstance(iwc.getIWMainApplication()); Map<Serializable, ?> cache = cacheManager.getCache(ApplicationCategoryViewer.CACHE_KEY); if (cache != null) { cache.clear(); } BuilderLogic.getInstance().clearAllCaches(); IWCacheManager.getInstance(iwc.getIWMainApplication()).clearAllCaches(); }
public void onUpdate(String[] values, IWContext iwc) { if (values != null) { String value = values[0]; boolean isCategory = false; if (value.equalsIgnoreCase("Y")) { isCategory = true; } int currentPage = BuilderLogic.getInstance().getCurrentIBPageID(iwc); if (currentPage != -1) { IBPageUpdater.setAsCategory(currentPage, isCategory); } } }