Disable Velocity caching
When you develop plugins 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.
Use the following steps to disable Velocity template caching in Confluence:
- Shut down your Confluence server.
- In your Confluence installation, open the
velocity.properties file from
confluence/WEB-INF/classes/ for editing.
- Make the following changes to the
- On all the lines that end with
...resource.loader.cache, set the values to
- Set the
false. (If this entry does not exist, you can skip this step.)
true. (Uncomment the line if necessary.)
- Save the updated
confluence/WEB-INF/classes/. This file takes precedence over the
one found in the Confluence JAR file.
- Start your Confluence server again.
Note that the Velocity macro libraries (
menu\_macros.vm) are only loaded once, when Velocity starts.
Therefore, regardless of the caching settings mentioned, any changes to these files in Confluence require restarting
the application to take effect.