
public function GetCacheData()
{
$hanld = @fopen( $this->CacheFileUrl,"r");
if( $hanld)
{
if(@is_readable( $this->CacheFileUrl))
{
$this->CacheToPage = @file_get_contents( $this->CacheFileUrl);
$IsEmpty = count(file( $this->CacheFileUrl)); //判断缓存文件是否为空
if( $IsEmpty > 0)
{
echo $this->CacheToPage;
@fclose( $hanld);
ob_end_flush();
exit();
}
} else {
$this->ErrResponse(’读取缓存文件内容失败’);
return false; }