function apachesolr_set_last_index_updated in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_set_last_index_updated()
- 6.3 apachesolr.module \apachesolr_set_last_index_updated()
Set the timestamp of the last index update
Parameters
$timestamp: A timestamp or zero. If zero, the variable is deleted.
6 calls to apachesolr_set_last_index_updated()
- apachesolr_cron in ./
apachesolr.module - Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment.
- apachesolr_index_delete_entity_from_index in ./
apachesolr.index.inc - Delete an entity from the index.
- apachesolr_index_delete_index in ./
apachesolr.index.inc - Delete the whole index for an environment.
- apachesolr_index_entities in ./
apachesolr.index.inc - Processes all index queues associated with the passed environment.
- apachesolr_index_nodeapi_mass_delete in ./
apachesolr.index.inc - Mass delete nodes from the solr indexer tables. TODO: This always assumes the default environment!
File
- ./
apachesolr.module, line 924 - Integration with the Apache Solr search application.
Code
function apachesolr_set_last_index_updated($env_id, $timestamp = 0) {
apachesolr_environment_variable_set($env_id, 'apachesolr_index_updated', $timestamp);
}