ActionErrors errors = new ActionErrors();
try {
ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
DbForumFactory dbForumFactory = null;
dbForumFactory = (DbForumFactory)((ForumFactoryProxy)forumFactory).getUnderlyingForumFactory();
DbCacheManager cacheManager = dbForumFactory.getCacheManager();
//action
if(request.getParameter("switchcache")!=null){
cacheManager.setCacheEnabled(!cacheManager.isCacheEnabled());
}