You are here

public function Drupal_Apache_Solr_Service::commit in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::commit()
  2. 6.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::commit()

Clear the cache whenever we commit changes.

See also

Apache_Solr_Service::commit()

File

./Drupal_Apache_Solr_Service.php, line 183

Class

Drupal_Apache_Solr_Service

Code

public function commit($optimize = TRUE, $waitFlush = TRUE, $waitSearcher = TRUE, $timeout = 3600) {
  parent::commit($optimize, $waitFlush, $waitSearcher, $timeout);
  $this
    ->_clearCache();
}