Jake Vanderwerf
2025-11-04 42fa8304ddb811b0f725f245130f70c0f5e86a6c
inc/registry/TaxonomyRegistrar.php
@@ -336,19 +336,15 @@
            if ($tax !== $taxonomy) return;
            $term = get_term($term_id, $tax);
            jvbUpdateCacheTimestamp('term', $term);
            // Clear taxonomy cache
            CacheManager::invalidateGroup($taxonomy);
            CacheManager::invalidateGroup('terms');
            CacheManager::invalidateGroup('termCheck');
            CacheManager::for(jvbNoBase($taxonomy))->invalidate();
            // Clear cache for associated content types
            $checker = Checker::getInstance();
            $content_types = $checker->getContentForTaxonomy($taxonomy);
            foreach ($content_types as $content_type) {
               CacheManager::invalidateGroup($content_type);
               CacheManager::for($content_type)->invalidate();
            }
            do_action("jvb_taxonomy_cache_invalidated_{$taxonomy}", $term, $action);