You are here

function panels_ajax_set_cache_data in Panels 5.2

Set the cache method and associated settings on the display.

2 calls to panels_ajax_set_cache_data()
panels_ajax_cache_settings in includes/display_edit.inc
Handle the cache settings form
panels_edit_cache_settings_form_submit in includes/display_edit.inc
Allows panel styles to validate their style settings.

File

includes/display_edit.inc, line 1297

Code

function panels_ajax_set_cache_data(&$display, $pid, $method, $settings = array()) {
  if ($pid) {
    $conf =& $display->content[$pid]->cache;
  }
  else {
    $conf =& $display->cache;
  }
  $conf['method'] = $method;
  $conf['settings'] = $settings;
}