eXo Platform provides 4 Social caches, including:
You can change values of these Social caches in the following files. See Configuration overview for how-to.
$PLATFORM_TOMCAT_HOME/gatein/conf/exo.properties
(Tomcat).
$PLATFORM_JBOSS_HOME/standalone/configuration/gatein/exo.properties
(JBoss).
$NATIVE_INSTALLER_DIR/apps/exoplatform/gatein/conf/exo.properties
(Native Installer).
In particular:
IdentityCache that is handled by CachedIdentityStorage.
# Social Cache Configuration - Identity
# - Standalone (time to live in seconds)
exo.cache.social.IdentityCache.Capacity=500
exo.cache.social.IdentityCache.TimeToLive=-1
# Social Cache Configuration - Identity Index
# - Standalone (time to live in seconds)
exo.cache.social.IdentityIndexCache.Capacity=500
exo.cache.social.IdentityIndexCache.TimeToLive=-1
# Social Cache Configuration - Profile
# - Standalone (time to live in seconds)
exo.cache.social.ProfileCache.Capacity=500
exo.cache.social.ProfileCache.TimeToLive=-1
# Social Cache Configuration - Identities
# - Standalone (time to live in seconds)
exo.cache.social.IdentitiesCache.Capacity=2000
exo.cache.social.IdentitiesCache.TimeToLive=86400
# Social Cache Configuration - Identities Count
# - Standalone (time to live in seconds)
exo.cache.social.IdentitiesCountCache.Capacity=2000
exo.cache.social.IdentitiesCountCache.TimeToLive=86400
RelationshipCache that is handled by CachedRelationshipStorage.
# Social Cache Configuration - Relationship
# - Standalone (time to live in seconds)
exo.cache.social.RelationshipCache.Capacity=20000
exo.cache.social.RelationshipCache.TimeToLive=-1
# Social Cache Configuration - Relationship From Identity
# - Standalone (time to live in seconds)
exo.cache.social.RelationshipFromIdentityCache.Capacity=20000
exo.cache.social.RelationshipFromIdentityCache.TimeToLive=-1
# Social Cache Configuration - Relationships Count
# - Standalone (time to live in seconds)
exo.cache.social.RelationshipsCountCache.Capacity=800
exo.cache.social.RelationshipsCountCache.TimeToLive=-1
# Social Cache Configuration - Relationships
# - Standalone (time to live in seconds)
exo.cache.social.RelationshipsCache.Capacity=800
exo.cache.social.RelationshipsCache.TimeToLive=-1
SpaceCache that is handled by CachedSpaceStorage.
# Social Cache Configuration - Space
# - Standalone (time to live in seconds)
exo.cache.social.SpaceCache.Capacity=1000
exo.cache.social.SpaceCache.TimeToLive=-1
# Social Cache Configuration - Space Ref
# - Standalone (time to live in seconds)
exo.cache.social.SpaceRefCache.Capacity=10000
exo.cache.social.SpaceRefCache.TimeToLive=-1
# Social Cache Configuration - Spaces Count
# - Standalone (time to live in seconds)
exo.cache.social.SpacesCountCache.Capacity=4000
exo.cache.social.SpacesCountCache.TimeToLive=86400
# Social Cache Configuration - Spaces
# - Standalone (time to live in seconds)
exo.cache.social.SpacesCache.Capacity=1000
exo.cache.social.SpacesCache.TimeToLive=86400
ActivityCache that is handled by CachedActivityStorage.
# Social Cache Configuration - Activity
# - Standalone (time to live in seconds)
exo.cache.social.ActivityCache.Capacity=10000
exo.cache.social.ActivityCache.TimeToLive=-1
# Social Cache Configuration - Activities Count
# - Standalone (time to live in seconds)
exo.cache.social.ActivitiesCountCache.Capacity=4000
exo.cache.social.ActivitiesCountCache.TimeToLive=-1
# Social Cache Configuration - Activities
# - Standalone (time to live in seconds)
exo.cache.social.ActivitiesCache.Capacity=4000
exo.cache.social.ActivitiesCache.TimeToLive=-1
The specific configuration of each Social cache can be found in:
$PLATFORM_TOMCAT_HOME/webapps/social-extension.war!/WEB-INF/conf/social-extension/social/cache-configuration.xml
(Tomcat).
$PLATFORM_JBOSS_HOME/standalone/deployments/platform.ear/social-extension-war.war!/WEB-INF/conf/social-extension/social/cache-configuration.xml
(JBoss).
$NATIVE_INSTALLER_DIR/apache-tomcat/webapps/social-extension/WEB-INF/conf/social-extension/social/cache-configuration.xml
(Native Installer).
The IdentityCache caches information related to identities, such as index, count or profile. When any users view or take actions on users/spaces or activity page that contains the cached identity information, information will be directly retrieved from cache rather than the database.
The IdentityCache is invalidated when the user/space is deleted or updated.
The IdentityCache size equals to the number of identities in cache.
The maximum heap size is calculated as follows:
Identity Data: 33Kb (Max size: 500)
Identity Index: 24Kb (Max size: 500)
Identities List: 3747Kb (Max size: 2000)
Identities Count: 739Kb (Max size: 2000)
Profile Data: 170Kb (Max size: 500)
The RelationshipCache caches relationship information of users in the social networking. Any connection status (connection, pending, invitation, suggestion and count of relationships) is cached. When any users ask for these cached relationships, their information will be retrieved from cache rather than the database.
The RelationshipCache is invalidated when the connection is changed/removed or when a new connection is added.
The RelationshipCache size equals to the number of relationships in cache.
The maximum heap size is calculated as follows:
Relationship Data: 14610Kb (Max size: 20000)
Relationships Count: 16Kb (Max size: 800)
Relationships: 171Kb (Max size: 800)
Suggestion: 400Kb (Max size: 500)
The SpaceCache caches all information of spaces, including the count and space references. When any users visit the cached spaces, their information will be retrieved from cache rather than the database.
The SpaceCache is invalidated when the space is deleted or updated.
The SpaceCache size equals to the number of spaces in cache.
The maximum heap size is calculated as follows:
Space Data: 1177Kb (Max size: 1000)
Spaces List: 1126Kb (Max size: 1000)
Spaces Count: 203Kb (Max size: 4000)
Space Ref: (38Kb) (Max size: 10000)
The ActivityCache caches information related to activities, such as the count of activities. When any users visit the cached activities, information of these activities will be retrieved from cache rather than the database.
The ActivityCache is invalidated when the activity is deleted or updated (a new comment is added to the activity).
The ActivityCache size equals to the number of activities in cache.
The maximum heap size is calculated as follows:
Activities Data: 3697Kb (Max size: 10000)
Activities List: 2555Kb (Max size: 4000)
Activities Count: 98Kb (Max size: 4000)