Commit 3d2f9ed1 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Document views_cache_get().

parent d1cff734
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment