function apachesolr_shutdown in Apache Solr Search 5
Registered shutdown function.
1 string reference to 'apachesolr_shutdown'
- ApacheSolrUpdate::getNodesToIndex in ./
apachesolr.module - Function to generically handle the fetching of nodes that need indexing on a cron run. It takes a namespace which needs to be unique to the calling module and manages all of the global variables and the shutdown function so that every…
File
- ./
apachesolr.module, line 467 - Integration with the Apache Solr search application.
Code
function apachesolr_shutdown() {
foreach (ApacheSolrUpdate::$_namespaces as $namespace => $vars) {
extract($vars);
if ($last_change && $last_id) {
variable_set("{$namespace}_last_change", $last_change);
variable_set("{$namespace}_last_id", $last_id);
}
}
}