我需要有关 dokuwiki 的帮助,我想从 wiki 中删除版本控制。任何提示我们的帮助将不胜感激。在此先感谢我已经研究了这段代码,但到目前为止还没有任何想法
`class cache_renderer 扩展 cache_parser { function _useCache() { global $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;
}`