eXo Platform provides 9 Forum caches, including:
In which:
UserProfilesCache is handled by CacheUserProfile in the configuration.properties
file.
# Forum Cache Configuration - User Profiles
# - Standalone (time to live in seconds)
cache.exo.forum.UserProfiles.Capacity=500
cache.exo.forum.UserProfiles.TimeToLive=-1
CategoriesCache, ForumsCache,
TopicsCache, PostsCache, WatchesCache,
ObjectNameDataCache, MiscDataCache are handled by CachedDataStorage in the configuration.properties
file.
# Forum Cache Configuration - Category List
# - Standalone (time to live in seconds)
cache.exo.forum.CategoryList.Capacity=50
cache.exo.forum.CategoryList.TimeToLive=-1
# Forum Cache Configuration - Category Data
# - Standalone (time to live in seconds)
cache.exo.forum.CategoryData.Capacity=150
cache.exo.forum.CategoryData.TimeToLive=-1
# Forum Cache Configuration - Forum List
# - Standalone (time to live in seconds)
cache.exo.forum.ForumList.Capacity=500
cache.exo.forum.ForumList.TimeToLive=-1
# Forum Cache Configuration - Forum Data
# - Standalone (time to live in seconds)
cache.exo.forum.ForumData.Capacity=2500
cache.exo.forum.ForumData.TimeToLive=-1
# Forum Cache Configuration - Topic List
# - Standalone (time to live in seconds)
cache.exo.forum.TopicData.Capacity=150
cache.exo.forum.TopicData.TimeToLive=-1
# Forum Cache Configuration - Topic Data
# - Standalone (time to live in seconds)
cache.exo.forum.TopicData.Capacity=500
cache.exo.forum.TopicData.TimeToLive=-1
# Forum Cache Configuration - Post Data
# - Standalone (time to live in seconds)
cache.exo.forum.PostData.Capacity=20000
cache.exo.forum.PostData.TimeToLive=-1
# Forum Cache Configuration - Post List
# - Standalone (time to live in seconds)
cache.exo.forum.PostList.Capacity=500
cache.exo.forum.PostList.TimeToLive=900
# Forum Cache Configuration - Post count
# - Standalone (time to live in seconds)
cache.exo.forum.PostListCount.Capacity=500
cache.exo.forum.PostListCount.TimeToLive=900
# Forum Cache Configuration - Watch List Data
# - Standalone (time to live in seconds)
cache.exo.forum.WatchListData.Capacity=500
cache.exo.forum.WatchListData.TimeToLive=-1
# Forum Cache Configuration - Link List Data
# - Standalone (time to live in seconds)
cache.exo.forum.LinkListData.Capacity=250
cache.exo.forum.LinkListData.TimeToLive=-1
# Forum Cache Configuration - Object Name Data
# - Standalone (time to live in seconds)
cache.exo.forum.ObjectNameData.Capacity=500
cache.exo.forum.ObjectNameData.TimeToLive=-1
# Forum Cache Configuration - Misc Data
# - Standalone (time to live in seconds)
cache.exo.forum.MiscData.Capacity=600
cache.exo.forum.MiscData.TimeToLive=-1
BBCodeCache is handled by CachedBBCodeService in the configuration.properties
file.
# BBCode Cache Configuration - BBCode List
# - Standalone (time to live in seconds)
cache.exo.forum.BBCodeListData.Capacity=10
cache.exo.forum.BBCodeListData.TimeToLive=-1
# BBCode Cache Configuration - BBCode Data
# - Standalone (time to live in seconds)
cache.exo.forum.BBCodeData.Capacity=50
cache.exo.forum.BBCodeData.TimeToLive=-1
The specific configuration of each Forum cache can be found in:
$PLATFORM_TOMCAT_HOME/webapps/forum-extension/WEB-INF/ks-extension/ks/forum/cache-configuration.xml
(in Tomcat).
$PLATFORM_JBOSS_HOME/standalone/deployments/platform.ear/forum-extension-webapp.war!/WEB-INF/ks-extension/ks/forum/cache-configuration.xml
(in 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).