Php dokuwiki:在dokuwiki中禁用版本控制

Php dokuwiki:在dokuwiki中禁用版本控制,php,dokuwiki,Php,Dokuwiki,我需要关于dokuwiki的帮助 我想从wiki中删除版本控制。我们将非常感谢您提供的任何帮助。 提前谢谢 我已经研究过这段代码,但到目前为止还没有任何想法 `类cache\u呈现器扩展了cache\u解析器{ 函数_useCache(){ 全球$conf if (!parent::_useCache()) return false; if (!isset($this->page)) { return true; } // check c

我需要关于dokuwiki的帮助 我想从wiki中删除版本控制。我们将非常感谢您提供的任何帮助。 提前谢谢 我已经研究过这段代码,但到目前为止还没有任何想法

`类cache\u呈现器扩展了cache\u解析器{ 函数_useCache(){ 全球$conf

    if (!parent::_useCache()) return false;

    if (!isset($this->page)) {
        return true;
    }

    // check current link existence is consistent with cache version
    // first check the purgefile
    // - if the cache is more recent than the purgefile we know no links can have been updated
    if ($this->_time >= @filemtime($conf['cachedir'].'/purgefile')) {
        return true;
    }

    // for wiki pages, check metadata dependencies
    $metadata = p_get_metadata($this->page);

    if (!isset($metadata['relation']['references']) ||
            empty($metadata['relation']['references'])) {
        return true;
    }

    foreach ($metadata['relation']['references'] as $id => $exists) {
        if ($exists != page_exists($id,'',false)) return false;
    }

    return true;
}`

在inc/common.php中搜索函数saveOldRevision()


顺便说一句,我建议在官方论坛/邮件列表中问这样的问题。在那里你会找到了解源代码的人。

你需要删除版本控制(这需要更改核心系统)还是不想让你的用户访问它?(可以在模板中完成)我需要将其从系统@symcbean中删除