Juan,
This is not an error of yours, but rather a problem with the Velocity
webapp resource loader.
As with PSML, we attempt to instruct Velocity to reload cached templates
and macros every 10 seconds. While this configuration used to work well
with the file loader, this is apparently not supported by the webapp
loader. Fortunately, I had previously implemented Velocity engine
caching that IS sensitive to changes in the macros definition file,
(yes, every 10 seconds). This is why decorator macro edits are picked up
but templates are not. So, all that is needed now is for me to extend
the checking of this logic to cover the templates. I believe I can
accomplish this easily by simply checking the modification time of the
decorator directory itself.
Randy
Juan Núñez Jaramillo wrote:
Well it seemd not to be a real problem but a error of mine.
David told me how to solve it, and it was so easy that I'm a bit ashamed.
Checking velocity.properties and setting webapp.resource.loader.cache
to false.
Randy Watler wrote:
Juan,
There have been reports of this and similar issues cropping up as of
late. Just to clarify:
1. Is it PSML pages you are modifying under a running instance of J2,
or portlet preferences?
2. Does the problem persist across multiple users or within a single
user session?
3. If the problem is limited to a single session, does it span
browser sessions?
4. How large is your site in general, (does it have more than 100
distinct PSML files)?
4. If I read your report correctly, restarting Tomcat does NOT always
clear the issue up?
Thanks for helping us pin this down,,,
Randy
Juan Núñez Jaramillo wrote:
I'm having some issues with the cache of some pages.
While the content of the portlets is showing fine, the psml page and
all the parts from its layout (decorator-top, decorator-bottom, even
the portlet decorator) are not refreshed anymore, unless I stop
Tomcat, wait for a while and start it again, and than doesn't alway
work.
Do you know if is a way so specify wich pages shoud be and what ones
shouldn't be cached?
Thanks a lot.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]