When you are developing plugins for Confluence, it can be useful to disable the caching of the Velocity templates so that you don't have to restart the server to see Velocity changes.
To disable Velocity template caching in Confluence:
<install-directory>/confluence/WEB-INF/classes/velocity.properties
and make the following changes:
...resource.loader.cache
, set the values to false
.class.resource.loader.cache
to false
(skip this step if this entry doesn't exist).velocimacro.library.autoreload
to true
(uncomment the line if necessary).velocity.properties
file. This file takes precedence over the one found in the Confluence JAR file.Note that the Velocity macro libraries (macros.vm
, menu\_macros.vm
) are only loaded once, when Velocity starts.
This means that regardless of the caching settings above, any changes to these files will require restarting Confluence to take effect.
Rate this page: