Skip to content

Commit e8bad9a

Browse files
Fixed runtime cache issue
1 parent e9b0cae commit e8bad9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Service/CustomLayoutService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Basilicom\AdvancedCustomLayoutBundle\Model\CustomLayoutConfig;
66
use Exception;
7+
use Pimcore\Cache\RuntimeCache;
78
use Pimcore\Model\DataObject\ClassDefinition;
89
use Pimcore\Model\DataObject\ClassDefinition\CustomLayout;
910
use Pimcore\Model\DataObject\ClassDefinition\Data;
@@ -25,6 +26,7 @@ public function __construct(ConfigurationService $configurationService)
2526
public function importAllCustomLayouts(): void
2627
{
2728
foreach ($this->configurationService->getCustomLayoutConfigs() as $config) {
29+
RuntimeCache::clear();
2830
$this->importCustomLayout($config);
2931
}
3032
}

0 commit comments

Comments
 (0)