IDEMPIERE-5818 AD_Session cache is not working (#1960)

This commit is contained in:
Carlos Ruiz 2023-08-01 04:46:28 +02:00 committed by GitHub
parent 890862de47
commit 6e0645f90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -130,7 +130,15 @@ public class MSession extends X_AD_Session implements ImmutablePOSupport
} // get
/** Session Cache */
private static ImmutableIntPOCache<Integer,MSession> s_sessions = new ImmutableIntPOCache<Integer,MSession>(Table_Name, 20);
private static ImmutableIntPOCache<Integer,MSession> s_sessions = new ImmutableIntPOCache<Integer,MSession>(Table_Name, Table_Name, 100, 0, false, 0) {
private static final long serialVersionUID = 8421415709907257867L;
public int reset() {
return 0; // do not remove on cache reset
};
public int reset(int recordId) {
return 0; // do not remove the session on update
};
};
/**