wpsharks / comet-cache

An advanced WordPress® caching plugin inspired by simplicity.
https://cometcache.com
GNU General Public License v3.0
77 stars 18 forks source link

WooCommerce wc-api failure #941

Open headwalluk opened 3 years ago

headwalluk commented 3 years ago

Hi

On a WooCommerce callback from SagePay I'm seeing the following, but it's intermittent. Could be specific to the individual orders, but the error message is the same when it happens.

Execution Timeout Error >> CacheDirUtils.php on line 160

The referrer is https://live.sagepay.com/ and they are coming at us with a very long URL which is a payment confirmation callback. The long URL contains a token for the payment transaction in the query string.

The URL it's calling at our end is

GET /wc-api/WC_Gateway_Sagepay_Form/?crypt=

The whole URL is over 900 characters long and causes Comet Cache to timeout at over 30 seconds. I assume something's falling over but not getting into the error log.

I've tried adding ^/wc-api** to the URL exclusions but it didn't work.

WordPress 5.5.1 CometCache Version 170220 WooCommerce 4.5.2