link manager: clear cache

This commit is contained in:
Yuri Kuznetsov
2024-09-23 15:45:12 +03:00
parent 459f53efa5
commit cad8e954d6
2 changed files with 8 additions and 0 deletions
@@ -431,6 +431,7 @@ class EntityManager
/**
* @throws BadRequest
* @throws Error
*/
public function postActionUpdateLinkParams(Request $request): bool
{
@@ -456,6 +457,7 @@ class EntityManager
/**
* @throws BadRequest
* @throws Error
*/
public function postActionResetLinkParamsToDefault(Request $request): bool
{
@@ -1183,6 +1183,7 @@ class LinkManager
/**
* @param array{readOnly?: bool} $params
* @throws Error
*/
public function updateParams(string $entityType, string $link, array $params): void
{
@@ -1204,8 +1205,12 @@ class LinkManager
]);
$this->metadata->save();
$this->dataManager->clearCache();
}
/**
* @throws Error
*/
public function resetToDefault(string $entityType, string $link): void
{
$this->metadata->delete('entityDefs', $entityType, [
@@ -1213,5 +1218,6 @@ class LinkManager
]);
$this->metadata->save();
$this->dataManager->clearCache();
}
}