Document views_cache_get().
parent
d1cff7341c
commit
3d2f9ed130
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue