[transfer-dev] Re: Dirty read problem SOLVED

2010-08-18 Thread pedrobl
Hi Jennifer, On Aug 18, 8:46 am, Jennifer Larkin wrote: > Are you cloning the object before you do the edit? > > http://www.dansshorts.com/post/managing-the-transfer-cache-with-clones No I wasn't. Thanks for the link too, cheers, Pedro. -- Before posting questions to the group please read: ht

[transfer-dev] Re: Dirty read problem SOLVED

2010-08-17 Thread pedrobl
Hi! On Aug 18, 2:11 am, Bob Silverberg wrote: > An easier solution is to clone() your Transfer object before you populate it. > Then the dirty data never gets into the cache. Yeap. More elegant, too. Thanks for the quick response, Pedro. -- Before posting questions to the group please read:

Re: [transfer-dev] Re: Dirty read problem SOLVED

2010-08-17 Thread Bob Silverberg
An easier solution is to clone() your Transfer object before you populate it. Then the dirty data never gets into the cache. Sent from my iPhone On 2010-08-17, at 7:53 PM, pedrobl wrote: > > OK, after reading again the documentation on caching, I thought it'd > smart to discard the invalid o

[transfer-dev] Re: Dirty read problem SOLVED

2010-08-17 Thread pedrobl
OK, after reading again the documentation on caching, I thought it'd smart to discard the invalid object from the cache. Simple. It's probably in the documentation... but I'm fond of learning by making mistakes... very fond of, apparently, :) Pedro. -- Before posting questions to the group ple