Elgg\Cache\MetadataCache::getAccessKey PHP Method

getAccessKey() protected method

Get a key to represent the access ability of the system. This is used to shard the cache array.
protected getAccessKey ( ) : string
return string E.g. "ignored" or "123"
    protected function getAccessKey()
    {
        if ($this->session->getIgnoreAccess()) {
            return "ignored";
        }
        return (string) $this->session->getLoggedInUserGuid();
    }