[BUGFIX] Set proper caching lifetime of meta tags and titles 91/58891/2
authorRichard Haeser <richard@maxserv.com>
Tue, 13 Nov 2018 20:54:01 +0000 (21:54 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Wed, 14 Nov 2018 02:31:30 +0000 (03:31 +0100)
Use the lifetime of the current page for caching the meta tags and titles

Resolves: #86234
Releases: master
Change-Id: I4ec46df3e3557d03bd8ff14fc738740a328fc64c
Reviewed-on: https://review.typo3.org/58891
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Classes/PageTitle/PageTitleProviderManager.php

index 61a1dab..303ac76 100644 (file)
@@ -1708,7 +1708,8 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface
                     $cache->set(
                         $cacheIdentifier,
                         $properties,
-                        ['pageId_' . $this->getTypoScriptFrontendController()->page['uid']]
+                        ['pageId_' . $this->getTypoScriptFrontendController()->page['uid']],
+                        $this->getTypoScriptFrontendController()->get_cache_timeout()
                     );
                 }
             }
index 76a2997..629ed4e 100644 (file)
@@ -69,7 +69,8 @@ class PageTitleProviderManager implements SingletonInterface
                     $this->pageCache->set(
                         $cacheIdentifier,
                         $pageTitle,
-                        ['pageTitle_' . $this->getTypoScriptFrontendController()->page['uid']]
+                        ['pageTitle_' . $this->getTypoScriptFrontendController()->page['uid']],
+                        $this->getTypoScriptFrontendController()->get_cache_timeout()
                     );
                     break;
                 }