Skip to content

Commit

Permalink
Clear frontend cache upon plugin install and update
Browse files Browse the repository at this point in the history
ISSUE: CS-3209
  • Loading branch information
goran-stamenkovski-logeecom committed Jun 7, 2022
1 parent 8bee2fb commit 44a6162
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AdyenPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public function install(InstallContext $context): void
$tool = new SchemaTool($this->container->get('models'));
$classes = $this->getModelMetaData();
$tool->updateSchema($classes, true);

$context->scheduleClearCache(InstallContext::CACHE_LIST_FRONTEND);
}

public function update(UpdateContext $context): void
Expand All @@ -105,6 +107,7 @@ public function update(UpdateContext $context): void
$classes = $this->getModelMetaData();
$tool->updateSchema($classes, true);

$context->scheduleClearCache(InstallContext::CACHE_LIST_FRONTEND);
parent::update($context);
}

Expand Down

0 comments on commit 44a6162

Please sign in to comment.