From 44a6162b49f588a50ba2003855d27e302a03dcfc Mon Sep 17 00:00:00 2001 From: Goran Stamenkovski Date: Tue, 7 Jun 2022 08:54:15 +0200 Subject: [PATCH] Clear frontend cache upon plugin install and update ISSUE: CS-3209 --- AdyenPayment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AdyenPayment.php b/AdyenPayment.php index 1a648998..df09e596 100644 --- a/AdyenPayment.php +++ b/AdyenPayment.php @@ -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 @@ -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); }