Microweber\Utils\Adapters\Cache\Storage\FileStorage::path PHP Method

path() protected method

Get the full path for the given cache key.
protected path ( string $key ) : string
$key string
return string
    protected function path($key)
    {
        $key = $this->appendLocale($key);
        $prefix = !empty($this->prefix) ? $this->prefix . '/' : '';
        $subdir = 'global';
        if (!empty($this->tags)) {
            $subdir = reset($this->tags);
        }
        return $this->directory . '/' . $subdir . '/' . $prefix . trim($key, '/') . '.cache';
    }