Document views_cache_get().

8.0.x
Daniel Wehner 2012-06-07 19:34:41 +02:00 committed by Tim Plunkett
parent d1cff7341c
commit 3d2f9ed130
1 changed files with 6 additions and 3 deletions

View File

@ -143,14 +143,17 @@ function views_cache_set($cid, $data, $use_language = FALSE) {
*
* This is just a convenience wrapper around cache_get().
*
* @param $cid
* @param int $cid
* The cache ID of the data to retrieve.
* @param $use_language
* @param bool $use_language
* If TRUE, the data will be requested specific to the currently active language.
*
* @return stdClass|bool
* The cache or FALSE on failure.
*/
function views_cache_get($cid, $use_language = FALSE) {
if (variable_get('views_skip_cache', FALSE)) {
return 0;
return FALSE;
}
if ($use_language) {
$cid .= ':' . drupal_container()->get(LANGUAGE_TYPE_INTERFACE)->langcode;