function search_dirty

7.x search.module search_dirty($word = NULL)
6.x search.module search_dirty($word = NULL)

Marks a word as dirty (or retrieves the list of dirty words). This is used during indexing (cron). Words which are dirty have outdated total counts in the search_total table, and need to be recounted.

2 calls to search_dirty()
search_index in drupal-6.x/modules/search/search.module
Update the full-text search index for a particular item.
search_update_totals in drupal-6.x/modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).

File

drupal-6.x/modules/search/search.module, line 249
Enables site-wide keyword searching.

Code

function search_dirty($word = NULL) {
  static $dirty = array();
  if ($word !== NULL) {
    $dirty[$word] = TRUE;
  }
  else {
    return $dirty;
  }
}