bigcommerce / bigcommerce-for-wordpress

A headless commerce integration for WordPress, powered by BigCommerce
https://www.bigcommerce.com/wordpress/
GNU General Public License v2.0
109 stars 48 forks source link

Is the Plugin Compatible with Varnish? #340

Closed ladle3000 closed 2 years ago

ladle3000 commented 2 years ago

Expected behavior

To work with varnish

Actual behavior

seems to be working, but want to be sure it's supported

Steps to reproduce behavior

  1. Please just put in documentation if varnish is supported out of the box or not, and what if any exclusions need set.

Screenshot/Video (if applicable)

Example Image

Workaround or possible solution

yuenvision commented 2 years ago

We will conduct some testing this sprint and pass along documentation/recommendations to BC to publish

yuenvision commented 2 years ago

@snoroozi our initial tests with various configurations of Varnish indicate that it can disable wp_cron, which will also disable the product importer. If you are able to set up a server-side cron to bypass wp_cron, that may be a path forward.

All other features within the plugin appear to work as-expected with Varnish running.

If you see that your importer will not pass through Step 1 of the process, you can verify if wp_cron is working or not by testing with WP Control.