PROP_CACHECAPACITY,
DEFAULT_CACHECAPACITY );
log.debug("Cache capacity "+capacity+" pages.");
m_cache = new Cache( true, false, false );
//
// OSCache documentation sucks big time. The clazz-parameter is completely
// undefined; I had to read the source code to figure out that you need
// to declare what type of a listener you are adding by sending the type
// of the interface.
//
m_cache.addCacheEventListener( m_allCollector, CacheEntryEventListener.class );
//
// FIXME: There's an interesting issue here... It would probably be
// possible to DOS a JSPWiki instance by bombarding it with names that
// do not exist, as they would fill the negcache. Will need to
// think about this some more...
//
m_negCache = new Cache( true, false, false );
m_textCache = new Cache( true, false, false,
false,
OSCACHE_ALGORITHM,
capacity );
m_historyCache = new Cache( true, false, false, false,
OSCACHE_ALGORITHM,
capacity );
//
// Find and initialize real provider.