« Return to Thread: Problem with VM and caching

Problem with VM and caching

by Johann.Weber :: Rate this Message:

Reply to Author | View in Thread

Hi all,

 

I'm using 2 vm files :

 

The first one, located in

/example1/local.vm with

 

#macro(Hello)

       Hello from example 1

#end

 

And the second one in

/example2/local.vm with

 

#macro(Hello)

       Hello from example 2

#end

 

One index.htm in both directories with #Hello

 

Now, if I try to parse the /example1/index.htm via

template.merge(context, velocityWriter, </example1/local.vm >) the
output is "Hello from example 1". The second call for
/example2/index.htm template.merge(context, velocityWriter,
</example2/local.vm >) returns "Hello from example 2". But if I'm
parsing the /example1/index.htm template.merge(context, velocityWriter,
</example1/local.vm >) again, I'm getting "Hello from example 2". It
works correct if I turn off the loader cache.

Any suggestions?

 

Regards, Johann

 « Return to Thread: Problem with VM and caching