Hello,

 I am using Roller 3.0 compiled from SVN with jdk 1.5, Tomcat 5.5.20 and
Mysql 4.x. I would like to desactivate the velocity cache because it is
impossible to
do web design with templates.

The parameter "reloadable='true'" is defined into conf / Catalina /
localhost / roller-3.0.xml for Context.

For the moment, I have the following configuration into velocity.properties.

# Licensed to the Apache Software Foundation (ASF) under one or more
#  contributor license agreements.  The ASF licenses this file to You
# under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.  For additional information regarding
# copyright in this work, please see the NOTICE file in the top level
# directory of this distribution.

# specify resource loaders to use
resource.loader = webapp, theme, roller, class

# theme resource loader
theme.resource.loader.public.name=theme
theme.resource.loader.description=Roller Theme Resource Loader
theme.resource.loader.class=org.apache.roller.ui.rendering.velocity.ThemeResourceLoader
theme.resource.loader.cache=false
theme.resource.loader.modificationCheckInterval=2

# for the loader we call 'roller', use the RollerResourceLoader
roller.resource.loader.public.name=roller
roller.resource.loader.description=Roller Main Resource Loader
roller.resource.loader.class=org.apache.roller.ui.rendering.velocity.RollerResourceLoader
roller.resource.loader.cache=false
roller.resource.loader.modificationCheckInterval=2

# for the loader we call 'class', use the ClasspathResourceLoader
class.resource.loader.description = Velocity Classpath Resource Loader
class.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
class.resource.loader.cache=false
class.resource.loader.modificationCheckInterval=2

# for the loader we call 'webapp', use the WebappResourceLoader
webapp.resource.loader.description = Roller Webapp Resource Loader
webapp.resource.loader.class =
org.apache.roller.ui.rendering.velocity.WebappResourceLoader
webapp.resource.loader.cache=false
webapp.resource.loader.modificationCheckInterval=2

# log invalid template references?
# set this to false to have a quieter velocity.log
runtime.log.invalid.reference=false

# tell Velocity to use Log4J
runtime.log.logsystem.class=org.apache.velocity.runtime.log.SimpleLog4JLogSystem
runtime.log.logsystem.log4j.category=org.apache.velocity

# Override the default global library, set to blank to load no default
velocimacro.library = weblog.vm,feeds.vm,roller-custom.vm

# Change to false for deployment environments.
# Caching for the 'class' & 'webapp' ResourceLoaders must be false for
this to work
velocimacro.library.autoreload=true

# Allow Velocimacros to be defined in regular templates
velocimacro.permissions.allow.inline=true

# Allow template authors to define macros in any template
velocimacro.permissions.allow.inline.local.scope=false

# set encoding/charset to UTF-8
input.encoding=UTF-8
output.encoding=UTF-8
default.contentType=text/html; charset=utf-8

I Don't understand why the cache is not desactivated. For each
modification, I must restart Tomcat :-(

 Thanks Much. Best regards, Nicolas


Reply via email to