Title: delete cache hook not working?
Last modified: June 28, 2023

---

# delete cache hook not working?

 *  Resolved [MarkJ](https://wordpress.org/support/users/forusak/)
 * (@forusak)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/delete-cache-hook-not-working/)
 * Hi, I am trying to hook my function into cache deletion. Found hook `wpsc_after_delete_cache_admin_bar`
   but it does nothing, are there any conditions for it to run?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/delete-cache-hook-not-working/#post-16857642)
 * You could try the `wp_cache_cleared` action. There’s also `gc_cache`.
 * Look in wp-cache-phase2.php for “do_action” and you’ll see the context.

Viewing 1 replies (of 1 total)

The topic ‘delete cache hook not working?’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/delete-cache-hook-not-working/#post-16857642)
 * Status: resolved