function views_cache_get

cis7 cache.inc views_cache_get($cid, $use_language = FALSE)
cle7 cache.inc views_cache_get($cid, $use_language = FALSE)
elmsmedia7 cache.inc views_cache_get($cid, $use_language = FALSE)
icor7 cache.inc views_cache_get($cid, $use_language = FALSE)
meedjum_blog7 cache.inc views_cache_get($cid, $use_language = FALSE)
mooc7 cache.inc views_cache_get($cid, $use_language = FALSE)

Return data from the persistent views cache.

This is just a convenience wrapper around cache_get().

Parameters

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.

Return value

stdClass|bool The cache or FALSE on failure.

7 calls to views_cache_get()
entity_views_plugins in sites/all/modules/ulmus/entity/views/entity.views.inc
Implements hook_views_plugins().
eva_get_views in sites/all/modules/ulmus/eva/eva.module
Get a list of views and displays attached to speficic entities.
views_block_info in sites/all/modules/ulmus/views/views.module
Implement hook_block_info().
views_content_views_content_type_content_types in sites/all/modules/ulmus/ctools/views_content/plugins/content_types/views.inc
Return all content types available.
views_content_views_panes_content_type_content_types in sites/all/modules/ulmus/ctools/views_content/plugins/content_types/views_panes.inc
Return all content types available.

... See full list

File

sites/all/modules/ulmus/views/includes/cache.inc, line 184
Load Views' data so that it knows what is available to build queries from.

Code

function views_cache_get($cid, $use_language = FALSE) {
  global $language;

  if (variable_get('views_skip_cache', FALSE)) {
    return FALSE;
  }
  if ($use_language) {
    $cid .= ':' . $language->language;
  }

  return cache_get($cid, 'cache_views');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.