我需要关于dokuwiki的帮助,我想从wiki中删除版本控制。任何提示,我们的帮助将非常感谢。提前感谢,我已经研究了这段代码,但到目前为止还没有得到任何想法
` cache_renderer类扩展了函数{ cache_parser _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;
}`发布于 2011-06-18 03:55:30
在inc/common.php中搜索函数saveOldRevision()。
顺便说一句。我建议在官方论坛/邮件列表中提出这样的问题。在那里你会找到知道源码的人。
https://stackoverflow.com/questions/6382641
复制相似问题