You are looking at documentation for an older release. Not what you want? See the current release documentation.
eXo Platform provides 9 Forum caches, including:
You can override these Forum caches in exo.properties file.
In particular:
UserProfilesCache that is handled by CacheUserProfile.
# Forum Cache Configuration - User Profiles
# - Standalone (time to live in seconds)
exo.cache.forum.UserProfiles.Capacity=500
exo.cache.forum.UserProfiles.TimeToLive=-1
CategoriesCache, ForumsCache, TopicsCache, PostsCache, WatchesCache, ObjectNameDataCache, MiscDataCache that are handled by CachedDataStorage.
# Forum Cache Configuration - Category List
# - Standalone (time to live in seconds)
exo.cache.forum.CategoryList.Capacity=50
exo.cache.forum.CategoryList.TimeToLive=-1
# Forum Cache Configuration - Category Data
# - Standalone (time to live in seconds)
exo.cache.forum.CategoryData.Capacity=150
exo.cache.forum.CategoryData.TimeToLive=-1
# Forum Cache Configuration - Forum List
# - Standalone (time to live in seconds)
exo.cache.forum.ForumList.Capacity=500
exo.cache.forum.ForumList.TimeToLive=-1
# Forum Cache Configuration - Forum Data
# - Standalone (time to live in seconds)
exo.cache.forum.ForumData.Capacity=2500
exo.cache.forum.ForumData.TimeToLive=-1
# Forum Cache Configuration - Topic Data
# - Standalone (time to live in seconds)
exo.cache.forum.TopicData.Capacity=500
exo.cache.forum.TopicData.TimeToLive=-1
# Forum Cache Configuration - Watch List Data
# - Standalone (time to live in seconds)
exo.cache.forum.WatchListData.Capacity=500
exo.cache.forum.WatchListData.TimeToLive=-1
# Forum Cache Configuration - Link List Data
# - Standalone (time to live in seconds)
exo.cache.forum.LinkListData.Capacity=250
exo.cache.forum.LinkListData.TimeToLive=-1
# Forum Cache Configuration - Object Name Data
# - Standalone (time to live in seconds)
exo.cache.forum.ObjectNameData.Capacity=500
exo.cache.forum.ObjectNameData.TimeToLive=-1
# Forum Cache Configuration - Misc Data
# - Standalone (time to live in seconds)
exo.cache.forum.MiscData.Capacity=600
exo.cache.forum.MiscData.TimeToLive=-1
BBCodeCache that is handled by CachedBBCodeService.
# BBCode Cache Configuration - BBCode List
# - Standalone (time to live in seconds)
exo.cache.forum.BBCodeListData.Capacity=10
exo.cache.forum.BBCodeListData.TimeToLive=-1
# BBCode Cache Configuration - BBCode Data
# - Standalone (time to live in seconds)
exo.cache.forum.BBCodeData.Capacity=50
exo.cache.forum.BBCodeData.TimeToLive=-1
The specific configuration of each Forum cache can be found in:
$PLATFORM_TOMCAT_HOME/webapps/forum-extension.war!/WEB-INF/ks-extension/ks/forum/cache-configuration.xml
(Tomcat).
$PLATFORM_JBOSS_HOME/standalone/deployments/platform.ear/forum-extension-webapp.war!/WEB-INF/ks-extension/ks/forum/cache-configuration.xml
(JBoss).
The UserProfilesCache caches information of users, for example, name, number of topics, number of posts, user settings information in the forum system. These cached information will be used when the users log in the forum for next times.
The UserProfilesCache is invalidated when the user is deleted or updated, or when the user creates a new topic/post or changes his/her user settings, logs in/out of the system.
The UserProfilesCache size equals to the number of user profiles in forum.
The maximum heap size of UserProfilesCache is 213Kb (Max size: 500).
The CategoriesCache caches information of categories, such as name, order, description, permissions. Information of these cached categories are used when the Forums application is opened not for the first time.
The CategoriesCache is invalidated when the category is modified (for example, when the user updates his/her profile, or watches a category, or adds/deletes a space).
The CategoriesCache size equals to the number of categories in cache.
The maximum heap size is calculated as follows:
Categories List: 207Kb (Max size: 50)
Categories Data: 54Kb (Max size: 150)
The ForumsCache caches information related to forums, such as name, order, description, permission. Information of these cached forums is used when any users open the Forums application not for the first time.
The ForumsCache is invalidated when the forum is modified (updating user profile, users watch on Forum, spaces updated).
The ForumsCache size equals to the number of forums in cache.
The maximum heap size is calculated as follows:
Forum List: 66Kb (Max size: 500)
Forum Data: 982Kb (Max size: 2500)
The TopicsCache caches information related to topics, such as name, description, owner, last updated time and permission. When any users go to the cached topics, their information will be retrieved from cache rather than the database.
The TopicsCache is invalidated when the topic is modified (for example, when the user watches a topic, or adds/deletes a post, or deletes a space).
The TopicsCache size equals to the number of topics in cache.
The maximum heap size is calculated as follows:
Topic List: 194Kb (Max size: 150)
Topic Data: 581Kb (Max size: 500)
The PostsCache caches information of posts, such as title, message, owner. When any users do anything related to the cached posts, information will be retrieved from cache rather than the database.
The PostsCache is invalidated when the post is modified (or updated).
The PostsCache size equals to the number of topics in cache.
The maximum heap size is calculated as follows:
Post List: 228Kb (Max size: 150)
Post Data: 720Kb (Max size: 500)
The WatchesCache caches information related to watches, such as users and emails. These cached information will be used when the forum/category/topic is loaded not for the first time.
The WatchesCache is invalidated when a post is modified (unwatched/watched).
The WatchesCache size equals to the number of watches in cache.
The maximum heap size of watched data is 257Kb (Max size: 500)
The ObjectNameDataCache caches simple information of categories/forums/topics, such as name and jcr-path. When any users ask for these cached forums/categories/topics, the information will be retrieved from cache rather than the database.
The ObjectNameDataCache is invalidated when a category/forum/topic is updated.
The ObjectNameDataCache size equals to the number of ObjectNameData in cache.
The maximum heap size of ObjectNameDataCache is 239Kb (Max size: 500).
The MiscDataCache caches simple information related to categories list size, forums list size, topic list size, screen name of users. These cached information is used when the Forums application is opened not for the first time.
The MiscDataCache is invalidated when a category/forum/topic/post/user profile is modified.
The MiscDataCache size equals to the number of MiscData in cache.
The maximum heap size equals to 45Kb (Max size: 600).
The BBCodeCache caches information related to BBCodes, such as tag name, replacement, description, isOption. When any users open the topic containing the cached BBCodeCache or add/edit the BBCode, information will be retrieved from cache rather than the database.
The BBCodeCache is invalidated when the BBCode is modified.
The BBCodeCache size equals to the number of BBCodes in cache.
The maximum heap size is calculated as follows:
BBCode List: 9Kb (Size: 10).
BBCode Data: 11,25Kb (Size: 50).