You are here

function views_navigation_get_cached_query in Views navigation 7

Get a view query from cache.

4 calls to views_navigation_get_cached_query()
views_navigation_get_links in ./views_navigation.inc
Build and render the previous/next links for the entity being viewed.
views_navigation_get_result in ./views_navigation.inc
Get the result of a query, as an array of etids keyed by position.
views_navigation_store_query in ./views_navigation.inc
Store a view query in cache.
_views_navigation_get_data in ./views_navigation.inc
Helper function to get the data.

File

./views_navigation.inc, line 11
Views navigation main include file.

Code

function views_navigation_get_cached_query($cid) {
  $cache = cache_get('query-' . $cid, VIEWS_NAVIGATION_CACHE_BIN);
  if ($cache && _views_navigation_query_is_supported($cache->data)) {
    return $cache->data;
  }
}