Created
February 28, 2016 07:25
-
-
Save imknight/c85087ebf30393274ed8 to your computer and use it in GitHub Desktop.
Cleaning redis cache for qtranslate-X on Woocommerce Site
This file contains 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
add_action( 'clean_post_cache', 'clean_qtranslatex_cache', 10, 2 ); | |
function clean_qtranslatex_cache( $post_id, $post) { | |
//depends on what language you have turn on for your site. | |
wp_cache_delete( $post_id, 'post_metazh' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment