Hi, On Mon, Dec 21, 2009 at 6:15 PM, Thomas Mortagne <[email protected]>wrote:
> On Mon, Dec 21, 2009 at 13:34, Sergiu Dumitriu <[email protected]> wrote: > > Hi devs, > > > > Currently the getDocument method always goes to the storage to retrieve > > the document, even if the same document has just been retrieved. This > > Note to be more clear: in public API only not private one (because the > XWikiDocument is got from cache storage and not reloaded each time > from the database). And the exact issue is that the XWikiDocument is > cloned in the Document instance so when you ask again for the Document > you don't get the same instance of XWikiDocument behind the scene. > > So with the new changes we'd clone the Document instance in current execution context (if there is one) rather than retrieve the underlying XWikiDocument and create a new Documents instance? +1 for the idea. - Asiri _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

