您好,欢迎访问一九零五行业门户网

读取文件

function read_static_cache($cache_name)
{
    if ((debug_mode & 2) == 2)
    {
        return false;
    }
    static $result = array();
    if (!empty($result[$cache_name]))
    {
        return $result[$cache_name];
    }
    $cache_file_path = root_path . '/temp/static_caches/' . $cache_name . '.php';
    if (file_exists($cache_file_path))
    {
        include_once($cache_file_path);
        $result[$cache_name] = $data;
        return $result[$cache_name];
    }
    else
    {
        return false;
    }
}
变量$data何解,没定义就赋值
回复讨论(解决方案) 你看下 root_path . '/temp/static_caches/' . $cache_name . '.php'这个临时文件 
里面应该有一个$data的数组
读取缓存的内容,而这个缓存是文件缓存。缓存的内容就是 $data = xxxx一大坨东西
其它类似信息

推荐信息