shippo-php-client icon indicating copy to clipboard operation
shippo-php-client copied to clipboard

Shippo Will not Sync Woocommerce Orders with Litespeed Cache

Open KitKatCarson opened this issue 4 years ago • 1 comments

I have successfully connected shippo to woocommerce. This connection only worked when litespeed cache was turned off. I have attempted to sync orders and they will not sync if litespeed is turned on. (Obviously)

I am seeing if I can discover the solution from the fiddling with the settings, but if I could receive any advice, perhaps a shippo URI to exclude in cache settings that would be very helpful.

I have object caching enabled with memcached as well.

Article on the Object Cache settings in Wordpress https://blog.litespeedtech.com/2018/02/07/object-cache-support-in-lscache/

I also added goshippo, api.goshippo & app.goshippo URLs in regular (non-object) cache excludes as well.

Thank you

KitKatCarson avatar May 31 '20 01:05 KitKatCarson

I got around to testing some other settings today and turning off WP Rest API caching setting resolved this.

However, there are other API requests I still wanted to be cached. So I added the Woocommerce Rest API URI to the Excludes >> Do Not Cache URIs setting of Litespeed.

^/wp-json/wc/

Hopefully, if someone else has this issue, this could help them.

KitKatCarson avatar May 31 '20 19:05 KitKatCarson