Title: How to invalidate cache when using REST API?
Last modified: June 14, 2022

---

# How to invalidate cache when using REST API?

 *  Resolved [eimpacteric](https://wordpress.org/support/users/eimpacteric/)
 * (@eimpacteric)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/how-to-invalidate-cache-when-using-rest-api/)
 * We have a developer who is updating product prices via REST API but we are having
   trouble with the front end displaying the updated prices. If I clear cache they
   update. Is there a proper way to update the price via REST API so that it automatically
   invalidates the cache for that product? Thanks!

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

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/how-to-invalidate-cache-when-using-rest-api/#post-15737561)
 * Hi [@eimpacteric](https://wordpress.org/support/users/eimpacteric/),
 * Good question! WooCommerce core doesn’t have a built-in feature for this but 
   searching around I’ve found that most known caching plugins like LiteSpeed Cache
   or W3 Total Cache have a feature to [disable REST API caching](https://kinsta.com/wp-content/uploads/2021/01/go-to-cache.png).
   You may want to check further and send the plugin authors any related questions
   as third-party plugins are not supported on this specific forum.
 * Cheers.
 *  Thread Starter [eimpacteric](https://wordpress.org/support/users/eimpacteric/)
 * (@eimpacteric)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/how-to-invalidate-cache-when-using-rest-api/#post-15739951)
 * I’m not looking for info regarding REST API caching. What I want is for the actual
   product page cache to be invalidated after the price is updated via the REST 
   API.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/how-to-invalidate-cache-when-using-rest-api/#post-15744064)
 * Hi there,
 * The above information is still valid as a WordPress caching plugin might help
   you clear your product page cache.
 * I found this plugin and thread that may be useful for your case.
 * [https://wordpress.org/support/topic/updating-through-the-api-will-not-clear-page-cache/](https://wordpress.org/support/topic/updating-through-the-api-will-not-clear-page-cache/)
 * I hope this helps and I’m going to close this topic for now. If you have any 
   specific questions on WooCommerce core please feel free to open a new topic.
 * Best regards.

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

The topic ‘How to invalidate cache when using REST API?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/how-to-invalidate-cache-when-using-rest-api/#post-15744064)
 * Status: resolved