Skip to content

Commit

Permalink
优化页面缓存可能出现缓存指定名字无效的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Nov 14, 2016
1 parent 83edb3a commit e4124ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class PageCachingFilter extends SimplePageCachingFilter {

@Override
protected CacheManager getCacheManager() {
this.cacheName = "pageCachingFilter";
return cacheManager;
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
<filter>
<filter-name>PageCacheFilter</filter-name>
<filter-class>com.thinkgem.jeesite.common.filter.PageCachingFilter</filter-class>
<init-param>
<param-name>cacheName</param-name>
<param-value>pageCachingFilter</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>PageCacheFilter</filter-name>
Expand Down

0 comments on commit e4124ac

Please sign in to comment.