protected function DrupalApacheSolrService::_clearCache in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 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 389
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;
}