protected function DrupalApacheSolrService::_clearCache in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::_clearCache()
- 7 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::_clearCache()
2 calls to DrupalApacheSolrService::_clearCache()
- DrupalApacheSolrService::clearCache in ./
Drupal_Apache_Solr_Service.php - Clear cached Solr data.
- DrupalApacheSolrService::commit in ./
Drupal_Apache_Solr_Service.php - Send a commit command. Will be synchronous unless both wait parameters are set to false.
File
- ./
Drupal_Apache_Solr_Service.php, line 382
Class
- DrupalApacheSolrService
- Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.
Code
protected function _clearCache() {
if ($this->env_id) {
cache_clear_all($this->env_id . ":stats:", 'cache_apachesolr', TRUE);
cache_clear_all($this->env_id . ":luke:", 'cache_apachesolr', TRUE);
}
$this->luke = array();
$this->stats = NULL;
}