You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

  • No labels