DispatcherHelper.cacheDisable(response); // this is a page that finds the ThreadFileManager and tells it // to run immediately. // is there a way to do this without blocking on returning to the user? String themeURL = request.getParameter("themeURL"); Theme theme = null; if (themeURL != null) { try { theme = Theme.findByURL(themeURL); } catch (DataObjectNotFoundException e) { // no item so we just return out.println("Unable to sync theme with URL " + themeURL + " because no theme found"); return; } } String updateType = request.getParameter("updateType"); ThemeFileManager pubManager = ThemePublishedFileManager.getInstance(); ThemeFileManager devManager = ThemeDevelopmentFileManager.getInstance(); if (pubManager != null && (updateType == null || ThemeFile.LIVE.equals(updateType))) { if (theme == null) { pubManager.updateAllThemesNow(); } else { pubManager.updateThemeNow(theme); } } if (devManager != null && (updateType == null || ThemeFile.DRAFT.equals(updateType))) { if (theme == null) { devManager.updateAllThemesNow(); } else { devManager.updateThemeNow(theme); } } Sync Complete