Return data from the persistent views cache.
This is just a convenience wrapper around cache_get().
int $cid: The cache ID of the data to retrieve.
bool $use_language: If TRUE, the data will be requested specific to the currently active language.
stdClass|bool The cache or FALSE on failure.
function views_cache_get($cid, $use_language = FALSE) {
if (config('views.settings')
->get('skip_cache')) {
return FALSE;
}
if ($use_language) {
$cid .= ':' . language(LANGUAGE_TYPE_INTERFACE)->langcode;
}
return cache('views_info')
->get($cid);
}