src/includes/classes/Core/Utils/DirCache.php
protected function subPath(string $primary_key, $sub_key = null, array $args = []): string
    {
        if (!isset($sub_key)) {
            if (empty($args['preserve_keys'])) {
                extract($this->sha1Keys($primary_key, null, $args));
            }
            return $sub_path = $primary_key;
        } else {
            if (empty($args['preserve_keys'])) {
                extract($this->sha1Keys($primary_key, $sub_key, $args));
            }
            $shard_id        = $this->c::sha1ModShardId($primary_key.$sub_key);
            return $sub_path = $primary_key.'/'.$shard_id.'/'.$sub_key;
        }
    }
protected function subPath(string $primary_key, $sub_key = null, array $args = []): string
    {
        if (!isset($sub_key)) {
            if (empty($args['preserve_keys'])) {
                extract($this->sha1Keys($primary_key, null, $args));
            }
            return $sub_path = $primary_key;
        } else {
            if (empty($args['preserve_keys'])) {
                extract($this->sha1Keys($primary_key, $sub_key, $args));
            }
            $shard_id        = $this->c::sha1ModShardId($primary_key.$sub_key);
            return $sub_path = $primary_key.'/'.$shard_id.'/'.$sub_key;
        }
    }
Key sub-path.

@since 170824.30708 Dir cache utils.

@param string          $primary_key Primary key.
@param string|int|null $sub_key     Sub-key to get.
@param array           $args        Any behavioral args.

@return string Key sub-path.