Created
July 5, 2016 13:58
-
-
Save ChrisFlannagan/003d3efa9cb2aec88b0e54b654e20c77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Clear cache on add to cart so the cart counter in header is updated | |
*/ | |
add_action( 'woocommerce_add_to_cart', 'my_custom_clear_cache', 10, 1 ); | |
function my_custom_clear_cache( ) { | |
comet_cache::clear(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment