ZBlogPHP::SaveCache PHP Method

SaveCache() public method

保存缓存
public SaveCache ( ) : boolean
return boolean
    public function SaveCache()
    {
        #$s=$this->usersdir . 'cache/' . $this->guid . '.cache';
        #$c=serialize($this->cache);
        #@file_put_contents($s, $c);
        //$this->configs['cache']=$this->cache;
        $new_hash = md5($this->Config('cache'));
        if ($this->cache_hash == $new_hash) {
            return true;
        }
        $this->SaveConfig('cache');
        $this->cache_hash = $new_hash;
        return true;
    }
ZBlogPHP