Commit a069734c authored by Niklas Fiekas's avatar Niklas Fiekas Committed by Crell
Browse files

Remove $response_body parameter from drupal_page_set_cache().

b99d11fa introduced a $response_body parameter on drupal_page_set_cache(),
but that is no longer used. Remove it.
parent c97afaff
......@@ -5248,7 +5248,7 @@ function _drupal_bootstrap_full($skip = FALSE) {
*
* @see drupal_page_header()
*/
function drupal_page_set_cache($response_body) {
function drupal_page_set_cache() {
global $base_root;
if (drupal_page_is_cacheable()) {
......
......@@ -20,9 +20,8 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
* Performs end of request tasks.
*
* @todo The body of this function has just been copied almost verbatim from
* drupal_page_footer(), with the exception of now passing the response
* content to drupal_page_set_cache(). There's probably a lot in here that
* needs to get removed/changed.
* drupal_page_footer(). There's probably a lot in here that needs to get
* removed/changed.
*
* @param Symfony\Component\HttpKernel\Event\PostResponseEvent $event
* The Event to process.
......@@ -37,7 +36,7 @@ public function onTerminate(PostResponseEvent $event) {
$response = $event->getResponse();
$config = config('system.performance');
if ($config->get('cache') && ($cache = drupal_page_set_cache($response->getContent()))) {
if ($config->get('cache') && ($cache = drupal_page_set_cache())) {
drupal_serve_page_from_cache($cache);
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment