Reduce the numbers or requests made to WooCommerce
The refactoring commit that added a new
Subcription class to wrap all WC related operation also increased the number of request that the middleware does to WooCommerce.
The goal of this issue is to reduce that number of requests.
Cache WC user id in
purist.models.Userclass after first call to
Store WC user id in
purist.models.Usermodel after first call to
get_woocommerce_id()for users that don't have that field and store it during creation of WC account for new users.