Invalidate kicad category cache, when parts get changed, as this might affect the visibility of categories too

Related to #885
This commit is contained in:
Jan Böhmer 2025-03-29 12:01:26 +01:00
parent 03e1105a8e
commit 5b111d80f1

View file

@ -66,6 +66,10 @@ class KiCadHelper
$secure_class_name = $this->tagGenerator->getElementTypeCacheTag(Category::class);
$item->tag($secure_class_name);
//Invalidate the cache on part changes (as the visibility depends on parts, and the parts can change)
$secure_class_name = $this->tagGenerator->getElementTypeCacheTag(Part::class);
$item->tag($secure_class_name);
//If the category depth is smaller than 0, create only one dummy category
if ($this->category_depth < 0) {
return [