public synchronized void run() { try { sleep(50); CacheController.clearCache(Class.forName(entity), new Object[] {entityId}, true); CacheController.clearCaches(entity, entityId, null, true); } catch (Exception e) { logger.error("An error occurred in the PublicationThread:" + e.getMessage()); } }
public int doEndTag() throws JspException { try { CacheController.clearCache(Class.forName(entity), new Object[] {entityId}, true); CacheController.clearCaches(entity, entityId, null, true); // CacheController.clearCaches(null, null, null, true); // CacheUpdateThread cacheUpdateThread = new CacheUpdateThread(); // cacheUpdateThread.start(); } catch (Exception e) { e.printStackTrace(); } return EVAL_PAGE; }