I attempted to upgrad 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
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:
==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)>
==TRANSFER XML SNIPPET==
<objectCache>
<defaultcache>
<maxminutespersisted value="15" />
</defaultcache>
</objectCache>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---