diff --git a/NEWS.md b/NEWS.md index 4da0999b6f60b7ef9b29dbac5ba101e21e3dda42..70b85b100ff73e7c9e069220e2521bf36db832e0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -141,6 +141,10 @@ incomplete HTML when a frontend page is rendered was removed from the TYPO3 Core. Its functionality is now provided by the TER extension "Tidy". The extension works with the same options as before. +* Change in Hook TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageLoadedFromCache'] + +Previously $row['cache_data'] was a serialized array. To avoid double serializing and unserializing, +from now on $row['cache_data'] is just reconstituted as array when fetching from cache. ### Administration / Customization @@ -187,4 +191,4 @@ Pages and content elements are now categorizable by default. * New menu types The "Special Menus" content element type now offers the possibility to display -a list of categorized pages or content elements. +a list of categorized pages or content elements. \ No newline at end of file diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php index d8ca484c12717128ad73d6039856ea303618cf35..18c1eb453b8d3e6cab7c7e00de379112406726cd 100644 --- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php +++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php @@ -2223,7 +2223,7 @@ class TypoScriptFrontendController { } } // Fetches the lowlevel config stored with the cached data - $this->config = (array) unserialize($row['cache_data']); + $this->config = $row['cache_data']; // Getting the content $this->content = $row['content']; // Flag for temp content @@ -3144,7 +3144,7 @@ class TypoScriptFrontendController { 'page_id' => $this->id, 'content' => $content, 'temp_content' => $this->tempContent, - 'cache_data' => serialize($data), + 'cache_data' => $data, 'expires' => $expirationTstamp, 'tstamp' => $GLOBALS['EXEC_TIME'] );