public function Drupal_Apache_Solr_Service::__construct in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::__construct()
- 6.2 Drupal_Apache_Solr_Service.php \Drupal_Apache_Solr_Service::__construct()
Put Luke meta-data from the cache into $this->luke when we instantiate.
See also
Apache_Solr_Service::__construct()
File
- ./
Drupal_Apache_Solr_Service.php, line 253
Class
Code
public function __construct($host = 'localhost', $port = 8180, $path = '/solr/') {
parent::__construct($host, $port, $path);
$this->luke_cid = "apachesolr:luke:" . md5($this->_lukeUrl);
$cache = cache_get($this->luke_cid, 'cache_apachesolr');
if (isset($cache->data)) {
$this->luke = $cache->data;
}
}