public function SearchApiIndex::resetCaches in Search API 7
Reset internal caches.
Should be used when things like fields or data alterations change to avoid using stale data.
2 calls to SearchApiIndex::resetCaches()
- SearchApiIndex::save in includes/
index_entity.inc - Saves this index to the database.
- SearchApiIndex::update in includes/
index_entity.inc - Helper method for updating entity properties.
File
- includes/
index_entity.inc, line 1022 - Contains SearchApiIndex.
Class
- SearchApiIndex
- Class representing a search index.
Code
public function resetCaches() {
cache_clear_all($this
->getCacheId(''), 'cache', TRUE);
$this->datasource = NULL;
$this->server_object = NULL;
$this->callbacks = NULL;
$this->processors = NULL;
$this->added_properties = NULL;
$this->fields = array();
$this->fulltext_fields = array();
}