Hi,
Thank you for the quick answer.
Well, yes. I had seen that, but I had no idea how to call the hook from “outside” WordPress. I did a few searches and it seems to be rather trivial once you see it
“require_once (‘PATH/wp-load.php)” (for others that may be searching for this).
Tried and tested. Working. Thanks.
But I suppose it would still be more convenient, when updating the product via a remote machine, to have a wget (or curl) script of the form :
http://YOUR-SITE-URL.com/?action=wpfastestcache&type=clearcache&token=123abc&ID=1923
Best Wishes.
but the cache of prıduct is cleared automatically, when you update a product.
via API?
It was not my experience that the cache was cleared when I updated the product via the Woocommerce API or Woocommerce Import. I can test that again if you say that it should be cleared.
Thanks.
Hi.
Nope.. the cache for a product (or the category pages) is not cleared when using the Woocommerce API (remotely). (Of course it *is* cleared when updating the product via the GUI.)
Anyway.. once one knows how to call the hook via a 3rd party script it is not too much work to write something up (which I just did).
I suppose it would still be easier to have something to call via remote URL; but it is okay. 🙂
Best Wishes.
I can fix the issue. Please contact me via email: https://www.wpfastestcache.com/contact-us/
Will do so. Thanks.
I did not realise that updating via the Woocommerce API should clear the cache and I thought I was putting in more something along the lines of a “feature request”, rather than a bug.
Best Wishes.
I am marking as closed.
I am happy with the way I worked “around” it (above).
We did not solve the “issue” (or was it a feature request?). I did not have time to set up a duplicate site, etc.. to help the developer, however I am very happy with the developer’s attempts at solving this.
Hopefully we will pick this up some time later.