1 views_plugin_cache.inc views_plugin_cache::cache_start()

Start caching javascript, css and other out of band info.

This takes a snapshot of the current system state so that we don't duplicate it. Later on, when gather_headers() is run, this information will be removed so that we don't hold onto it.

File

core/modules/views/plugins/views_plugin_cache.inc, line 183
Definition of views_plugin_cache.

Class

views_plugin_cache
The base plugin to handle caching.

Code

function cache_start() {
  $this->storage['head'] = backdrop_add_html_head();
  $this->storage['css'] = backdrop_add_css();
  $this->storage['js'] = backdrop_add_js();
  $this->storage['headers'] = backdrop_get_http_header();
}