You can shutoff caching with the property

torque.managers.useCache = false

Also caching is not turned on automatically.  You need to call to have a
ctor in your KinaiseManager that sets the region 

public KinaiseManager()
{
    setRegion("com_upstate_kinaseprofiler_torque_db_om_Kinase");
}

only managers which call setRegion will be caching and only if the
property given above is true.

john mcnally


On Tue, 2002-09-24 at 14:49, [EMAIL PROTECTED] wrote:
> Hi all,
> 
> I am trying to test my application using the newest Torque and building my
> objects to use Managers.  On one server, I have the older objects with no
> caching.  On the other server the b5 version of the objects built with
> Caching.  Now, it seems that caching is automatically turned on.  Even
> worse, I am running out of memory on some large pages, which I believe is
> due to the memory required to cache everything.  
> 
> What I haven't figured out is, does caching happen automatically?  I see log
> messages about "late" adding of managers.  My cache.ccf looks like this:
> 
> # DEFAULT CACHE REGION  
> # sets the default aux value for any non configured caches
> jcs.default=
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=1000
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru
> .LRUMemoryCache
> 
> # this is copied from example, not sure of its utility
> # SYSTEM CACHE
> # should be defined for the storage of group attribute list
> jcs.system.groupIdCache=
> jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCache
> Attributes
> jcs.system.groupIdCache.cacheattributes.MaxObjects=1000
> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engin
> e.memory.lru.LRUMemoryCache
> 
> # CACHE REGIONS AVAILABLE 
> # Regions preconfigured for caching
> 
> jcs.region.com_upstate_kinaseprofiler_torque_db_om_Kinase=
> jcs.region.com_upstate_kinaseprofiler_torque_db_om_Kinase.cacheattributes=or
> g.apache.jcs.engine.CompositeCacheAttributes
> jcs.region.com_upstate_kinaseprofiler_torque_db_om_Kinase.cacheattributes.Ma
> xObjects=200
> jcs.region.com_upstate_kinaseprofiler_torque_db_om_Kinase.cacheattributes.Me
> moryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> 
> 
> Is this the way I want it configured?  I really ONLY want my Kinase objects
> to be cached, and everything else to NOT be cached.
> 
> Eric Pugh
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to