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

Paramètres

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 dans ./advagg.module
Get the latest version number for the remote version.
advagg_get_remote_libraries_versions dans ./advagg.module
Update github version numbers to the latest.

Fichier

./advagg.module, line 5728

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;
}