We had a customer report that the new purging for WooCommerce was causing a FATAL error. So we have done two things to make sure it will never get that again
- We have wrapped the Purge for WooCommerce code in a try/catch statement. What this does is listen for fatal errors and if they happen, reports on them without causing the fatal error to stop processing.
- We have also added additional type checking for the $product to make sure that I am dealing with it in the correct way. The old code was expecting an object, but got an integer. We now check for both, and if either are not possible it does nothing.
In additon, we updated the confirmed supported WordPress version to the current release 6.7.1