Horde_Registry::_cacheId PHP Method

_cacheId() protected method

Get the cache ID for the registry information.
protected _cacheId ( string $hash = null )
$hash string If set, hash this value and use as the hash of the registry. If false, uses session stored value.
    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));
    }