Ah, I must've breezed over that section of the release notes. Now that you point it out, it makes sense. I will change how I am discarding the data and see if the issue is resolved (it seems that it should be).
Thanks for the pointers. Maz On Dec 30, 6:30 pm, "Mark Mandel" <[email protected]> wrote: > The discard algorithm changed between 1.1 and 1.0, you can see it here > in the real > notes:http://docs.transfer-orm.com/wiki/ReleaseNotes:1.1.cfmhttp://tracker.transfer-orm.com/issue.cfm?p=89977683-A728-9CD3-ABD954... > > I also described it in the blog post: > > http://www.compoundtheory.com/?action=displayPost&ID=372 > > Mark > > > > On Wed, Dec 31, 2008 at 4:23 AM, mark mazelin <[email protected]> wrote: > > > One other note on this. The cache I really need cleared is on the > > child object (onetomany) of the record I am actually discarding the > > cache on. In other words, in my CFML, I am loading up the parent > > record and calling discard() on that, but it is the payment child > > record that has it's database data updated and therefore needs it > > cache cleared. > > > On Dec 30, 12:00 pm, mark mazelin <[email protected]> wrote: > >> NOTE: Please disregard my first post--I accidentally hit the submit > >> button before I was done typing (thanks for no previews google!). Here > >> is the full post: > >> ------------------------- > >> I attempted to upgrade from transfer 1.0 to 1.1 this morning and ran > >> into a significant issue with caching. I have an application that > >> takes user input, creates a series of records, redirects to a > >> different CF application for payment (which directly updates a payment > >> data table), then redirects back to the main application for e-mail/ > >> receipt. > > >> On the redirect back to the main application, I have the following > >> CFML code that is supposed to clear out the transfer cache of the > >> object in question so that the updated payment data can be read from > >> the database. > > >> Unfortunately, when I upgraded from 1.0 to 1.1, the cache discard > >> stopped working. The updated payment appears 15 minutes later when the > >> cache clears out, but not immediately like it was doing. FYI I did > >> refresh my application, my session, and clear out all > >> generated .transfer files. > > >> Any ideas? > > >> ==CFML CODE== > >> <cfset svc=application.factory.getBean("DonationService")> > >> <cfset rec=svc.getDonation(ID)> > >> <!--- clear the cache for this object so the payment gets updated with > >> credit card information ---> > >> <cfset application.factory.getBean("transfer").discard(rec)> > >> <!--- re-get the record ---> > >> <cfset rec=svc.getDonation(ID)> > > >> ==RELEVANT TRANSFER XML SNIPPET== > >> <objectCache> > >> <defaultcache> > >> <maxminutespersisted value="15" /> > >> </defaultcache> > >> </objectCache> > > >> <object name="donation" table="Donation" > >> decorator="edu.cedarville.donor.donation"> > >> <id name="DonationID" type="GUID" generate="false" /> > >> <onetomany name="payment" lazy="true"> > >> <link to="donor.payment" column="DonationID" /> > >> <collection type="array"> > >> <order property="CreatedDate" order="asc" /> > >> </collection> > >> </onetomany> > >> </object> > > -- > E: [email protected] > W:www.compoundtheory.com --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
