We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be5ba9 commit 2b270f7Copy full SHA for 2b270f7
php/class-delivery.php
@@ -82,6 +82,12 @@ protected function setup_hooks() {
82
add_action( 'update_option_cloudinary_media_display', array( $this, 'clear_cache' ) );
83
add_filter( 'cloudinary_current_post_id', array( $this, 'get_current_post_id' ) );
84
add_filter( 'the_content', array( $this, 'add_post_id' ) );
85
+
86
+ // Clear cache on taxonomy update.
87
+ $taxonomies = get_taxonomies( array( 'show_ui' => true ) );
88
+ foreach ( $taxonomies as $taxonomy ) {
89
+ add_action( "saved_{$taxonomy}", array( $this, 'clear_cache' ) );
90
+ }
91
}
92
93
/**
0 commit comments