[EMAIL PROTECTED] wrote:
Various 'escape' functionality is, IIRC, made possible with one of the util classes. However a proper way to call them is not available.The extra functions are - xml (escape xml characters) - escapejavascriptThe mmbase 1.7 should get a more generic way for all functions.
Ther question is wether all these escape (or other) functions need be present in MMobjectBuilder or not.
I would configure this using the caches.xml file.The OBJ2TYPE_MAX_SIZE is default set to 20.000, but this is to low for the current sites of the vpro.
The code needed would look something like this:
// cache
private Cache typeCache = new Cache(OBJ2TYPE_MAX_SIZE) {
public String getName() { return "TypeCache"; }
public String getDescription() { return "Cache for node types";}
};
I would recommend renaming 'object2type' to 'typeCache', to signify the change and give it a more proper name. I also recommend making the cache private or at the least protected.
You can then configure it in caches.xml:
<cache name="TypeCache">
<status>active</status>
<size>40000</size>
</cache>
--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Never summon anything bigger than your head."
