diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
index 7df986e..a6ac16d 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
@@ -165,7 +165,7 @@ function cache_get($type) {
           if (!$cutoff || $cache->created > $cutoff) {
             $this->storage = $cache->data;
             $this->view->display_handler->output = $cache->data['output'];
-            $this->restore_headers();
+            $this->restoreHeaders();
             return TRUE;
           }
         }
@@ -238,7 +238,7 @@ function gather_headers() {
   /**
    * Restore out of band data saved to cache. Copied from Panels.
    */
-  function restore_headers() {
+  public function restoreHeaders() {
     if (!empty($this->storage['head'])) {
       drupal_add_html_head($this->storage['head']);
     }
