Skip to content

Commit 5b111d8

Browse files
committed
Invalidate kicad category cache, when parts get changed, as this might affect the visibility of categories too
Related to #885
1 parent 03e1105 commit 5b111d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Services/EDA/KiCadHelper.php

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public function getCategories(): array
6666
$secure_class_name = $this->tagGenerator->getElementTypeCacheTag(Category::class);
6767
$item->tag($secure_class_name);
6868

69+
//Invalidate the cache on part changes (as the visibility depends on parts, and the parts can change)
70+
$secure_class_name = $this->tagGenerator->getElementTypeCacheTag(Part::class);
71+
$item->tag($secure_class_name);
72+
6973
//If the category depth is smaller than 0, create only one dummy category
7074
if ($this->category_depth < 0) {
7175
return [

0 commit comments

Comments
 (0)