【发布时间】:2011-06-17 07:26:54
【问题描述】:
我需要有关 dokuwiki 的帮助 我想从 wiki 中删除版本控制。任何提示我们的帮助将不胜感激。 提前致谢 我已经查看了这段代码,但到目前为止没有任何想法
`class 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;
}`
【问题讨论】:
-
您是否需要删除版本控制(这将需要更改核心系统)或者您只是不想让您的用户访问它? (可以在模板中完成)
-
我需要从系统中删除它@symcbean