Issue #2209583 by ianthomas_uk: Remove use of drupal_set_title()/drupal_get_title()/_system_path from page cache.

8.0.x
webchick 2014-03-04 09:52:19 -08:00
parent 49a687fa54
commit 2c9c01bfd5
2 changed files with 0 additions and 5 deletions

View File

@ -1769,9 +1769,6 @@ function _drupal_bootstrap_page_cache() {
if (is_object($cache)) {
$response = new Response();
$response->headers->set('X-Drupal-Cache', 'HIT');
// Restore the metadata cached with the page.
_current_path($cache->data['path']);
drupal_set_title($cache->data['title'], PASS_THROUGH);
date_default_timezone_set(drupal_get_user_timezone());
drupal_serve_page_from_cache($cache, $response, $request);

View File

@ -3248,9 +3248,7 @@ function drupal_page_set_cache(Response $response, Request $request) {
$cache = (object) array(
'cid' => drupal_page_cache_get_cid($request),
'data' => array(
'path' => $request->attributes->get('_system_path'),
'body' => $response->getContent(),
'title' => drupal_get_title(),
'headers' => array(),
// We need to store whether page was compressed or not,
// because by the time it is read, the configuration might change.