Cache Customization - Legacy 7.0 to 7.7

Legacy cache support is based on OSCache. Recommend using the current support documented in Cache Management Options.

Legacy cache support is not applicable to the latest version 7.8 of Cache for Confluence.

OSCache Customization

  • For normal usage, properties do not need to be changed.
  • Properties for the cache behavior are specified in .../WEB-INF/classes/oscache.properties.
  • The properties file no longer ships with Confluence, but can be created. The default without a specific property file is:

    .../WEB-INF/classes/oscache.properties
    cache.memory=true
    cache.capacity=1000
    
  • The capacity property equal to 1000 means that 1000 distinct renderings of the cache macro are cached. Additional distinct renderings replace previously cached entries. You should increase the capacity only if you used the cache macro in many places (over 1000) that are accessed regularly and the extra JVM memory used is acceptable.
  • If your system is memory constrained, consider adding a configuration file to restrict memory usage by setting cache.capacity=100 or cache.capacity=250.
  • The rendered html, which is normally a few KB per entry is cached.


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.