[BUGFIX] In BE: MetaTags are not cached by page rendering
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Page / PageRenderer.php
index 5e9414b..61a1dab 100644 (file)
@@ -1704,7 +1704,7 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface
             if (!empty($properties)) {
                 $metaTags[] = $properties;
 
-                if ($cache instanceof FrontendInterface && !$existingCacheEntry) {
+                if ($cache instanceof FrontendInterface && !$existingCacheEntry && ($this->getTypoScriptFrontendController()->page['uid'] ?? false)) {
                     $cache->set(
                         $cacheIdentifier,
                         $properties,