Project

General

Profile

Revision 72032ea6

ID72032ea627f1055d08f5c18db0a0403b57560486
Parent d5661a4c
Child 78292e72

Added by Andreas Kohlbecker about 7 years ago

allowing toi refesh the level2 cache by supplying the utl parameter 'cacheL2_refresh=1'

View differences:

7.x/modules/cdm_dataportal/cdm_api/cdm_api.module
1499 1499
    $uri = cdm_compose_url($uri, $pathParameters, $query);
1500 1500
  }
1501 1501

  
1502
  // read request parameter 'cacheL2_refresh'
1503
  // which allows refreshig the level 2 cache
1504
  $do_cacheL2_refresh = isset($_REQUEST['cacheL2_refresh']) && $_REQUEST['cacheL2_refresh'] == 1;
1505

  
1502 1506
  $is_cdm_ws_uri = _is_cdm_ws_uri($uri);
1503 1507
  $use_cacheL2 = variable_get('cdm_webservice_cache', 1);
1504 1508

  
......
1523 1527
  $set_cacheL2 = $use_cacheL2 && $is_cdm_ws_uri && $set_cacheL1;
1524 1528
  $cacheL2_entry = FALSE;
1525 1529

  
1526
  if ($use_cacheL2) {
1530
  if ($use_cacheL2 && !$do_cacheL2_refresh) {
1527 1531
    // Try to get object from cacheL2.
1528 1532
    $cacheL2_entry = cache_get($cache_key, 'cache_cdm_ws');
1529 1533
  }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)