You are here

function _authcache_node_history in Authenticated User Page Caching (Authcache) 6

Same name and namespace in other branches
  1. 7 ajax/authcache.php \_authcache_node_history()

Node history

See also

node.module

File

ajax/authcache.php, line 130
Authcache Ajax Callback (authcache.php)

Code

function _authcache_node_history($nid) {
  include_once './modules/node/node.module';

  // Update the 'last viewed' timestamp of the specified node for current user.
  node_tag_new($nid);

  // Retrieves the timestamp at which the current user last viewed the specified node
  return node_last_viewed($nid);
}