You are here

public function Drupal_Apache_Solr_Service::commit in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 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.

Overrides Apache_Solr_Service::commit

See also

Apache_Solr_Service::commit()

File

./Drupal_Apache_Solr_Service.php, line 180

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();
}