core/modules/big_pipe/src/Render/BigPipe.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/core/modules/big_pipe/src/Render/BigPipe.php b/core/modules/big_pipe/src/Render/BigPipe.php index 9860bfd..4418e20 100644 --- a/core/modules/big_pipe/src/Render/BigPipe.php +++ b/core/modules/big_pipe/src/Render/BigPipe.php @@ -135,11 +135,6 @@ public function sendContent($content, array $attachments) { $this->sendPlaceholders($placeholders, $this->getPlaceholderOrder($pre_body), $cumulative_assets); $page_cache_response .= $this->sendPostBody($post_body); - // @todo this is hacky as hell - if (\Drupal::currentUser()->isAnonymous()) { - $this->set($this->requestStack->getMasterRequest(), new Response($page_cache_response ), -1, []); - } - if ($has_session) { // Close the session again. $this->session->save(); @@ -148,25 +143,6 @@ public function sendContent($content, array $attachments) { return $this; } - /** - * Loaned from PageCache. - */ - protected function set(Request $request, Response $response, $expire, array $tags) { - $cid = $this->getCacheId($request); - \Drupal::service('cache.render')->set($cid, $response, $expire, $tags); - } - - /** - * Loaned from PageCache. - */ - protected function getCacheId(Request $request) { - $cid_parts = array( - $request->getUri(), - $request->getRequestFormat(), - ); - return implode(':', $cid_parts); - } - /** * Sends everything until just before . *