function agrcache_update_file_list in Aggregate cache 7
Merge the existing file list with new values.
Parameters
$type: The type of file list, either 'js' or 'css'.
$values: An array of values to add.
2 calls to agrcache_update_file_list()
- agrcache_aggregate_css in ./
agrcache.module  - Replacement for drupal_aggregate_css().
 - agrcache_get_js in ./
agrcache.module  - Replacement for drupal_get_js().
 
File
- ./
agrcache.module, line 517  - Provides imagecache style generation of css/js aggregates.
 
Code
function agrcache_update_file_list($type, array $values) {
  $file_list = agrcache_get_file_list($type);
  foreach (array_keys($values) as $key) {
    $file_list[$key] = array_merge($values[$key], $file_list[$key]);
  }
  cache_set("agrcache_file_list_{$type}", $file_list);
}