function views_cache_set

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

Set a cached item in the views cache.

This is just a convenience wrapper around cache_set().

Parameters

$cid: The cache ID of the data to store.

$data: The data to store in the cache. Complex data types will be automatically serialized before insertion. Strings will be stored as plain text and not serialized.

$use_language: If TRUE, the data will be cached specific to the currently active language.

7 calls to views_cache_set()
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 158
Load Views' data so that it knows what is available to build queries from.

Code

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

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

  cache_set($cid, $data, '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.