[BUGFIX] Invalidate cached PageTitleProvider 65/59265/3
authorGuido Schmechel <guido.schmechel@brandung.de>
Sat, 22 Dec 2018 11:26:14 +0000 (12:26 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 4 Jan 2019 19:53:55 +0000 (20:53 +0100)
After handling/saving a page the cache entry for pageTitle
is removed, too.

Resolves: #87257
Releases: master, 9.5
Change-Id: I5aac5563d49100ef1f82e6bbe22dad05969b6fdf
Reviewed-on: https://review.typo3.org/59265
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: JarvisH <jekorma+mytypo3@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/PageTitle/PageTitleProviderManager.php

index 7908305..d093a99 100644 (file)
@@ -69,7 +69,7 @@ class PageTitleProviderManager implements SingletonInterface
                     $this->pageCache->set(
                         $cacheIdentifier,
                         $pageTitle,
-                        ['pageTitle_' . $this->getTypoScriptFrontendController()->page['uid']],
+                        ['pageId_' . $this->getTypoScriptFrontendController()->page['uid']],
                         $this->getTypoScriptFrontendController()->get_cache_timeout()
                     );
                     break;