Title: Function to clear cache
Last modified: January 1, 2017

---

# Function to clear cache

 *  Resolved [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/function-to-clear-cache/)
 * Is there a function available for plugin developers to immediately clear the 
   cache, i.c. a call that does the same as clicking the adminbar’s brush?

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

 *  [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/function-to-clear-cache/#post-8608008)
 * [@opajaap](https://wordpress.org/support/users/opajaap/) Yes, see [Is there an API call that clears the cache?](https://cometcache.com/kb-article/is-there-an-api-call-that-clears-the-cache/)
    -  This reply was modified 9 years, 4 months ago by [Raam Dev](https://wordpress.org/support/users/raamdev/).
      Reason: Fix link
 *  Thread Starter [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/function-to-clear-cache/#post-8608815)
 * Thank you. This works, but that will not surprise you…

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

The topic ‘Function to clear cache’ is closed to new replies.

 * ![](https://ps.w.org/comet-cache/assets/icon-256x256.png?rev=1348602)
 * [Comet Cache](https://wordpress.org/plugins/comet-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comet-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comet-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/comet-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comet-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comet-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/function-to-clear-cache/#post-8608815)
 * Status: resolved