You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Venu Sunil Boyireddy <ve...@aztec.soft.net> on 2005/07/08 19:30:20 UTC
Could not StoreACLs also when slide cache is off in Slide 2.0.
Hi,
When I turned off slide cache, only URIs are getting stored with out ACL.
But when slide cache is on it stores both URIs and ACL.
How can we solve this? Ie. Need to store ACLs also when slide cache is off.
Here is description of my problem,
We are using Slide2.0. As our application requires, I turned off slide
cache.
For this I updated ExtendedStore.java, (with the help of Slide 2.1). set the
globalCacheOff to true.
This is piece of code from ExtendedStore.java, shows how I called init
method.
if (globalCacheOff)
{
globalObjectCacheSize = -1;
globalPermissionCacheSize = -1;
globalLockCacheSize = -1;
globalDescrtiptorsCacheSize = -1;
globalDescrtiptorCacheSize = -1;
contentCachingEnabled = false;
}
init(
globalObjectCacheSize,
globalPermissionCacheSize,
globalLockCacheSize,
globalDescrtiptorsCacheSize,
globalDescrtiptorCacheSize,
contentCachingEnabled,
globalContentCacheSize,
contentCacheBytes,
txContentCacheSize,
txContentCacheBytes,
maxByteSizePerEntry);
}
and I handled the cacheSize in TXLRUObjectCache. So that when its value is
-1 it wont create global cache for that object.
Here is that::
public TxLRUObjectCache(int globalCacheSize, String name, Logger logger) {
if (globalCacheSize != -1)
globalCache = new LRUMap(globalCacheSize);
txChangeCaches = new HashMap();
txDeleteCaches = new HashMap();
this.name = name;
this.logger = logger;
logChannel = "TxLRUObjectCache";
if (name != null) {
logChannel += "." + name;
}
// used for guarded logging as preparation is expensive
loggingEnabled = logger.isEnabled(logChannel, Logger.DEBUG);
}
We could not migrate to Slide2.1 as our application requires to support 2.0.
Thanks in advance.
Regards
Sunil