Ubercart Credit Cache Refresher

Component ID

2486901

Component name

Ubercart Credit Cache Refresher

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module implements the same changes as the patch provided in comment #5 of #2296541: uc_credit_cache returns wrong payment details.

Ubercart does not refresh the credit card cache after the first order is loaded, so any subsequent orders that are loaded will become associated with the first order's payment details in-memory. If those orders are saved (e.g. via some operation with Views Bulk Operations, Rules, or otherwise) potential data loss of customer payment details can occur order.

This module ensures that the credit cache is properly flushed before different orders are loaded.