protected function _cacheId($hash = null)
{
global $session;
if (!is_null($hash)) {
$hash = hash('md5', $hash);
$session->set('horde', self::REGISTRY_CACHE, $hash);
} elseif (!($hash = $session->get('horde', self::REGISTRY_CACHE))) {
return false;
}
/* Generate cache ID. */
return implode('|', array(gethostname() ?: php_uname(), __FILE__, $this->_regmtime, $hash));
}