We’re making changes to our server and Data Center products, including the end of sale for new server licenses on February 2, 2021 and the end of support for server on February 2, 2024. Learn what this means for you.
Last updatedMay 28, 2020
Rate this page:
Disable Velocity caching
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:
Edit <install-directory>/confluence/WEB-INF/classes/velocity.properties and make the following changes:
On all the lines that end with ...resource.loader.cache, set the values to false.
Set the class.resource.loader.cache to false (skip this step if this entry doesn't exist).
Set velocimacro.library.autoreload to true (uncomment the line if necessary).
Save the updated 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.