diff --git a/supersede-css-jlg-enhanced/src/Support/TokenRegistry.php b/supersede-css-jlg-enhanced/src/Support/TokenRegistry.php index 68c1425..0dde6e3 100644 --- a/supersede-css-jlg-enhanced/src/Support/TokenRegistry.php +++ b/supersede-css-jlg-enhanced/src/Support/TokenRegistry.php @@ -380,15 +380,12 @@ public static function getRegistry(): array if ($needsCssRegeneration) { self::persistCss($normalized, $generatedCss); + self::invalidateCssCache(); } } finally { self::endOptionPersistence(); } - if ($needsCssRegeneration) { - self::invalidateCssCache(); - } - return $normalized; }