You are here

function apachesolr_index_set_last_updated in Apache Solr Search 6.2

Set the timestamp of the last index update

Parameters

$updated: A timestamp or zero. If zero, the variable is deleted.

8 calls to apachesolr_index_set_last_updated()
apachesolr_commentsearch_delete_comment_from_index in contrib/apachesolr_commentsearch/apachesolr_commentsearch.module
Removes a comment from the index.
apachesolr_cron in ./apachesolr.module
Implementation of hook_cron().
apachesolr_delete_index in ./apachesolr.admin.inc
Utility function to delete the index and reset all index counters.
apachesolr_delete_node_from_index in ./apachesolr.module
apachesolr_index_nodes in ./apachesolr.module
Handles the indexing of nodes.

... See full list

File

./apachesolr.module, line 575
Integration with the Apache Solr search application.

Code

function apachesolr_index_set_last_updated($updated = 0) {
  if ($updated) {
    variable_set('apachesolr_index_updated', (int) $updated);
  }
  else {
    variable_del('apachesolr_index_updated');
  }
}