You are here

protected function Drupal_Apache_Solr_Service::_clearCache in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::_clearCache()
  2. 6 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::_clearCache()
2 calls to Drupal_Apache_Solr_Service::_clearCache()
Drupal_Apache_Solr_Service::clearCache in ./Drupal_Apache_Solr_Service.php
Clear cached Solr data.
Drupal_Apache_Solr_Service::commit in ./Drupal_Apache_Solr_Service.php
Clear the cache whenever we commit changes.

File

./Drupal_Apache_Solr_Service.php, line 172

Class

Drupal_Apache_Solr_Service

Code

protected function _clearCache() {
  cache_clear_all("apachesolr:luke:", 'cache_apachesolr', TRUE);
  cache_clear_all("apachesolr:stats:", 'cache_apachesolr', TRUE);
  $this->luke = array();
  $this->stats = NULL;
}