You are here

function google_appliance_static_response_cache in Google Search Appliance 5

Same name and namespace in other branches
  1. 6.2 google_appliance.module \google_appliance_static_response_cache()

It is important to hold on to the Google Appliance response object for the duration of the page request so that we can use it for things like the keymatch block

Stolen from apachesolr module

2 calls to google_appliance_static_response_cache()
google_appliance_block in ./google_appliance.module
Implementation of hook_block().
google_appliance_search in ./google_appliance.module
Implementation of hook_search()

File

./google_appliance.module, line 547
GSA integration

Code

function &google_appliance_static_response_cache($response = NULL) {
  static $_response;
  if (!empty($response)) {
    $_response = drupal_clone($response);
  }
  return $_response;
}