Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Note

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:

    No Format
    title.../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.