velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: VelocityViewServlet and purging the template cache
Date Fri, 01 Jul 2011 15:27:10 GMT
As far as i know, that's all uncharted territory.  But you're not the
first to ask about ways to programmatically clear the cache.  I just
don't think anyone has ever worked on support for this.

On Thu, Jun 30, 2011 at 6:47 PM, Christopher Schultz
<> wrote:
> All,
> I'm using Velocity 1.4 (yeah, I know), and I'm not sure if it matters,
> but I'm using VelocityLayoutServlet from tools 1.4.
> In production, we have the following configuration in
> resource.loader=webapp
> webapp.resource.loader.cache=true
> webapp.resource.loader.modificationCheckInterval=0
> Occasionally, I'd like to have a single template re-loaded from the
> disk. Is there a way to do that with a (privileged) HTTP call? If not,
> is there a way to ask a Loader to purge a template from it's cache? If
> so, I could build a template-purging servlet (or even augment
> VelocityViewServlet) to do this and then protect it for admins only.
> I'm wondering if anyone has done such a thing in the past, what their
> experiences have been, and what their recommendations might be.
> Thanks,
> -chris

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message