You are here

function advagg_get_remote_libraries_versions_cache in Advanced CSS/JS Aggregation 7.2

Get the remote and local versions cache of the available libraries.

Parameters

string $cid: Cache ID.

Return value

array Library name => (local, remote).

2 calls to advagg_get_remote_libraries_versions_cache()
advagg_get_remote_libraries_version in ./advagg.module
Get the latest version number for the remote version.
advagg_get_remote_libraries_versions in ./advagg.module
Update github version numbers to the latest.

File

./advagg.module, line 5726
Advanced CSS/JS aggregation module.

Code

function advagg_get_remote_libraries_versions_cache($cid = '') {
  if (empty($cid)) {
    $cid = 'advagg_get_remote_libraries_versions';
  }
  $versions =& drupal_static($cid, array());
  if (empty($versions)) {
    $cache = cache_get($cid, 'cache_advagg_info');
    if (!empty($cache) && !empty($cache->data)) {
      $versions = $cache->data;
    }
  }
  return $versions;
}