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:
./confluence/src/etc/java/velocity.properties、または/WEB-INF/classes/velocity.properties for Confluence 2.5 and earlier, orconfluence/WEB-INF/lib/confluence-[version].jar#velocity.properties for Confluence 2.6 and later....resource.loader.cache values to false.class.resource.loader.cache to false. (If this entry does not exist, you can skip this step.)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.