You are here

public function SearchApiSolrConnection::clearCache in Search API Solr 7

Clears the cached Solr data.

Overrides SearchApiSolrConnectionInterface::clearCache

1 call to SearchApiSolrConnection::clearCache()
SearchApiSolrConnection::optimizeOrCommit in includes/solr_connection.inc
Sends a commit or optimize command to the Solr server.

File

includes/solr_connection.inc, line 517

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

public function clearCache() {
  if ($cid = $this
    ->getCacheId()) {
    cache_clear_all($cid, 'cache_search_api_solr', TRUE);
  }
  $this->luke = array();
  $this->stats = NULL;
  $this->system_info = NULL;
}