Thread Starter
vdugar
(@vdugar)
Apparent FIX: In settings, I checked the box: “Prefetch Payment Popup Scripts”.
Now the edited product URL is used in “Please click here to download.”
Hi.
This might be related to caching plugins you use on your site.
Every time you edit a product, make sure you clear cache in caching plugins.
If you don’t use caching plugins, this might be related to caching settings on your server (Nginx, Apache etc).
“Prefetch Payment Popup Scripts” helped you in this situation because it adds cache key to every payment popup. The key is regenerated every time you make a change to product or general plugin settings, which prevents situations you described.
Thread Starter
vdugar
(@vdugar)
Thank you Alexander. I’d like to not have to manage server/client caching to get URL changes to take effect. So it sounds like even if I keep “Prefetch Payment Popup Scripts” checked, I’d still have to make and save some edit in the product or settings screen. — Vince D.
I’d like to not have to manage server/client caching to get URL changes to take effect.
Well, WP docs says you probably have to, otherwise you can expect similar issues: https://wordpress.org/support/article/i-make-changes-and-nothing-happens/
So it sounds like even if I keep “Prefetch Payment Popup Scripts” checked, I’d still have to make and save some edit in the product or settings screen.
Unless product page cached by a cache plugin or excessive server cache config (both of which our plugin obviously can’t control), you don’t need to take any additional actions for the changes in product to be reflected on the site.
Thread Starter
vdugar
(@vdugar)
Thank you Alexander. Indeed, indeed the caches are doing their thing and I guess there’s no way around that. I’ll be back looking at this probably tomorrow. Busy day!
– V