mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-05 07:54:35 +02:00
Added basic admin page for Label profiles.
This commit is contained in:
parent
b23dec0262
commit
a8a92b9c5d
20 changed files with 1688 additions and 857 deletions
|
@ -44,6 +44,7 @@ namespace App\EntityListeners;
|
|||
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use App\Entity\LabelSystem\LabelProfile;
|
||||
use App\Entity\UserSystem\Group;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Services\UserCacheKeyGenerator;
|
||||
|
@ -71,7 +72,7 @@ class TreeCacheInvalidationListener
|
|||
public function invalidate(AbstractDBElement $element, LifecycleEventArgs $event): void
|
||||
{
|
||||
//If an element was changed, then invalidate all cached trees with this element class
|
||||
if ($element instanceof AbstractStructuralDBElement) {
|
||||
if ($element instanceof AbstractStructuralDBElement || $element instanceof LabelProfile) {
|
||||
$secure_class_name = str_replace('\\', '_', get_class($element));
|
||||
$this->cache->invalidateTags([$secure_class_name]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue