bigcommerce-for-wordpress icon indicating copy to clipboard operation
bigcommerce-for-wordpress copied to clipboard

Nonce Expiry

Open jamescscotlightdirect opened this issue 3 years ago • 6 comments

The nonce expiry every 24 hours on product pricing causes issues with caching plugins on Wordpress (WP Rocket & Accelerator). When the nonce expires the pricing API fails causing no prices to load. It would be great if another solution was put in place or there was an option to turn this off or remove it as the suggestion of not caching the pages is not an option for e-commerce sites as it is most of the website.

Thank you

jamescscotlightdirect avatar Aug 12 '22 16:08 jamescscotlightdirect

We have exactly the same problem with WP rockets. You should be able to just choose to use your synced price only if this removes the nonce. Our website is running much slower now because the work around means we can't do any cache warm up/lazy load. We could really do with a solution to this as according to big commerce more people have this issue.

Rolo117 avatar Aug 23 '22 11:08 Rolo117

Expected to be addressed in v4.34.0

yuenvision avatar Aug 30 '22 17:08 yuenvision

@yuenvision Hi Paul, I can see this request is being implemented on the next release thank you very much. This is a major fix for us.

Can I clarify how this is being implemented. Will we have to manually go into each product page to request this to be disabled button or will there be an option to apply to all products at once?

"The option allows nonce disabling in pricing requests on a single product page"

jamescscotlightdirect avatar Sep 15 '22 11:09 jamescscotlightdirect

It will be an admin option that affects all product detail pages (product_single) site-wide.

yuenvision avatar Sep 15 '22 14:09 yuenvision

@yuenvision Great news thank you very much

jamescscotlightdirect avatar Sep 15 '22 15:09 jamescscotlightdirect

@yuenvision Hi Paul, Thanks again for the update. Pushed the update live but there is no nonce section on product singe in customizer. Am I looking in the correct place?

Product single 1 product single 2

jamescscotlightdirect avatar Sep 16 '22 08:09 jamescscotlightdirect

Hi Paul, Hope you are well. Do you know roughly when a fix will be released for this? Cheers James

jamescscotlightdirect avatar Sep 26 '22 10:09 jamescscotlightdirect

This feature was already released. Please ensure and confirm that your version of BC4WP is at least v4.34.0 and that you have the Fast Headless import method enabled in your Settings. You should then see the option in Appearance > Customizer > BigCommerce > Product Single.

Screen Shot 2022-09-26 at 9 25 51 AM

yuenvision avatar Sep 26 '22 16:09 yuenvision

Thanks Paul I can see this now as Fast headless we not enabled. Graph QL issue is back once I enabled this but will open a new ticket again. This can now be closed

jamescscotlightdirect avatar Sep 26 '22 18:09 jamescscotlightdirect