IDEMPIERE-3653 1004207 Change behavior of system cacheing for multi-tenants. Use distributed cache for model.
This commit is contained in:
parent
4cfe1258b0
commit
476c98a4b4
|
@ -131,14 +131,15 @@ public class MAcctSchema extends X_C_AcctSchema
|
||||||
// Save
|
// Save
|
||||||
MAcctSchema[] retValue = new MAcctSchema [list.size()];
|
MAcctSchema[] retValue = new MAcctSchema [list.size()];
|
||||||
list.toArray(retValue);
|
list.toArray(retValue);
|
||||||
s_schema.put(key, retValue);
|
if (trxName == null)
|
||||||
|
s_schema.put(key, retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
} // getClientAcctSchema
|
} // getClientAcctSchema
|
||||||
|
|
||||||
/** Cache of Client AcctSchema Arrays **/
|
/** Cache of Client AcctSchema Arrays **/
|
||||||
private static CCache<Integer,MAcctSchema[]> s_schema = new CCache<Integer,MAcctSchema[]>(I_AD_ClientInfo.Table_Name, 3); // 3 clients
|
private static CCache<Integer,MAcctSchema[]> s_schema = new CCache<Integer,MAcctSchema[]>(I_AD_ClientInfo.Table_Name, 3, 120, true); // 3 clients
|
||||||
/** Cache of AcctSchemas **/
|
/** Cache of AcctSchemas **/
|
||||||
private static CCache<Integer,MAcctSchema> s_cache = new CCache<Integer,MAcctSchema>(Table_Name, 3); // 3 accounting schemas
|
private static CCache<Integer,MAcctSchema> s_cache = new CCache<Integer,MAcctSchema>(Table_Name, 3, 120, true); // 3 accounting schemas
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class MClient extends X_AD_Client
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MClient.class);
|
private static CLogger s_log = CLogger.getCLogger (MClient.class);
|
||||||
/** Cache */
|
/** Cache */
|
||||||
private static CCache<Integer,MClient> s_cache = new CCache<Integer,MClient>(Table_Name, 3);
|
private static CCache<Integer,MClient> s_cache = new CCache<Integer,MClient>(Table_Name, 3, 120, true);
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue