You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Richard Frovarp <ri...@sendit.nodak.edu> on 2008/01/28 23:05:52 UTC

Stale sitetree issue

I've been trying to work on bug 44067. The problem is UrlToUuidRewrite 
uses the sitetree from the session when you follow the code all of the 
way down. This can result in stale information being used and resulting 
in links not being rewritten. The links will then have the authoring 
area in them when they are published to live, unless the page is 
subsequently saved with a sitetree that has the correct information in it.

I see two solutions to this:

1) UrlToUuidRewrite needs to be able to get to a new sitetree.

2) SiteTreeImpl needs to recognize that it may be stale and reload the 
data.

Option 2 seems to make the most sense to me. As far as I can tell only 
the contains() function would need to do the time check. If it's been 5 
seconds since it last reloaded, well, that's a very long time on an 
active site and it probably needs to be updated.

Any opinions?

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org