// 更新页面缓存 private void flushCache() { Cache cache = ServletCacheAdministrator.getInstance(getRequest().getSession().getServletContext()) .getCache(getRequest(), PageContext.APPLICATION_SCOPE); cache.flushAll(new Date()); }
/** set the storeCode for generate key. */ public String createCacheKey( HttpServletRequest httpRequest, ServletCacheAdministrator scAdmin, Cache cache) { return scAdmin.generateEntryKey( null, httpRequest, super.getCacheScope(), RequestContext.getCurrentStoreCode()); }