Behavior/ReadHtmlCacheBehavior.php
public function run(&$params)
    {
        // 开启静态缓存
        if (IS_GET && C('HTML_CACHE_ON')) {
            $cacheTime = $this->requireHtmlCache();
            //静态页面有效
            if (false !== $cacheTime && $this->checkHTMLCache(HTML_FILE_NAME, $cacheTime)) {
                // 读取静态页面输出
                echo Storage::read(HTML_FILE_NAME);
                return;
            }
        }
    }
public function run(&$params)
    {
        // 开启静态缓存
        if (IS_GET && C('HTML_CACHE_ON')) {
            $cacheTime = $this->requireHtmlCache();
            //静态页面有效
            if (false !== $cacheTime && $this->checkHTMLCache(HTML_FILE_NAME, $cacheTime)) {
                // 读取静态页面输出
                echo Storage::read(HTML_FILE_NAME);
                return;
            }
        }
    }
执行入口

@param mixed $params