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>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---