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