{
public final static Logger logger = Logger.getLogger(OSCacheUtility.class.getName());
public static void setServletCacheParams(ServletContext context)
{
ServletCacheAdministrator servletCacheAdministrator = ServletCacheAdministrator.getInstance(context);
servletCacheAdministrator.flushAll();
Cache cache = servletCacheAdministrator.getAppScopeCache(context);
servletCacheAdministrator.setAlgorithmClass("com.opensymphony.oscache.base.algorithm.ImprovedLRUCache");
int capacity = 5000;
String cacheCapacity = (String)CmsPropertyHandler.getCacheSettings().get("CACHE_CAPACITY_oscache_ServletCache");
if(logger.isInfoEnabled())