This documentation relates to an earlier version of Confluence.
View this page in the current documentation or visit the current documentation home.
Skip to end of metadata
Go to start of metadata

When you are developing for Confluence, it is often useful to disable the caching of the velocity templates so that you don't have to restart the server to see velocity changes.

Perform the following modifications before starting the server, or restart it afterwards:

  1. Edit your Velocity properties, which you will find in one of the following locations:
    • ./confluence/src/etc/java/velocity.properties, or
    • if you are using the webapp: /WEB-INF/classes/velocity.properties for Confluence 2.5 and earlier, or
    • confluence/WEB-INF/lib/confluence-[version].jar#velocity.properties for Confluence 2.6 and later.
  2. Set all the ...resource.loader.cache values to false.
  3. Set the class.resource.loader.cache to false. (If this entry does not exist, you can skip this step.)
  4. Set velocimacro.library.autoreload to true. (Uncomment the line if necessary.)

Unfortunately, this does not apply to the macro library (macros.vm). Hence, a restart is essential.