Closed ravinderk closed 1 year ago
This issue has been linked to a Canny post: PDF Receipt download link isn't generating for Stripe Donations :tada:
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.
This issue was closed because it has been stalled for an additional 14 days with no activity.
Details
PDF receipt add-on email tags stop working with the recent GiveWP version. The donor does not get the receipt pdf link in the donation completion email when donating with the Stripe credit card. I discovered that WordPress returns result from an object cache (if exists) for a given post type. WordPress maintains a post object cache only if the post is updated with WordPress functions. WordPress does not update object cache if we update donation, form, and donor with a direct SQL query. To prevent frequent issues about the inconsistent results from the WordPress function, either we have to flush the cache with
clean_post_cache
or update the cache withupdate_post_cache
.Expected Behavior
The WordPress get post functions should return live results.
Steps to Reproduce
{pdf_receipt}
email tag in donor new donation email notificationAcceptance Criteria