Viewing 3 replies - 1 through 3 (of 3 total)
  • Bia

    (@biancaakanaonda)

    UpVote for this

    I’m not the author but technically, one could insert a flush action in the functions.php file when a product is sold..wouldn’t be too hard to do. To keep it clean i’d have the Woo Commerce register_action (if it didnt have a suitable one to hook into already — which im sure it has plenty) and when it gets triggered it would callback to your function which would then trigger a flush post to w3tc: do_action(w3tc_pgcache_flush_post,…). The hard part is just knowing which post to flush and so i’d be dependent on what Woo provided to make it easy to know which page it was. Unless the product is sold on the very page that needs updating, if that is the case then its pretty easy to do.

    Anyone found a solution to this?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Serious Woo Commerce problem’ is closed to new replies.