src/Leevel/View/Html.php
public function getCachePath(string $file): string
    {
        if (!$this->option['cache_path']) {
            throw new RuntimeException('Theme cache path must be set.');
        }

        $file = str_replace('//', '/', str_replace('\\', '/', $file));

        $file = basename($file, '.'.pathinfo($file, PATHINFO_EXTENSION)).'.'.md5($file).'.php';

        return $this->option['cache_path'].'/'.$file;
    }
public function getCachePath(string $file): string
    {
        if (!$this->option['cache_path']) {
            throw new RuntimeException('Theme cache path must be set.');
        }

        $file = str_replace('//', '/', str_replace('\\', '/', $file));

        $file = basename($file, '.'.pathinfo($file, PATHINFO_EXTENSION)).'.'.md5($file).'.php';

        return $this->option['cache_path'].'/'.$file;
    }
获取编译路径.

@param string $file

@return string