用户工具

站点工具


02-工程实践:cms:dokuwiki:首页

Dokuwiki使用技巧

常用插件

常用模版

使用技巧

页面导出

Cache(缓存)

  • 页面缓存更新:wiki.php?id=page:name&purge=true'
  • 避免页面缓存: <code></code>
  • 更新样式表缓存: dokuwiki/lib/exe/css.php?purge=true
  • 更新所有缓存<code> touch conf/dokuwiki.php conf/local.php touch inc/parser/parser.php inc/parser/handler.php touch inc/parser/xhtml inc/parser/metadata</code>

重命名 doku.php

比如想用wiki.php而不是doku.php作为首页面。

  • copy doku.php wiki.php
  • 修改 index.php 中的 doku.php 为 wiki.php
  • 在wiki.php的开始部分添加语句 if(!defined('DOKUSCRIPT')) define('DOKUSCRIPT','wiki.php');

删除不必要的语言文件

  • 好处是可以减小文件夹大小. e.g. 从 33.5K ⇒ 17.3K <code> # Remove Dummy Lang find . -type d -path “lang/” | egrep -v “/en|/zh” | xargs rm -rf </code>
    ~~PDFNS>.|Dokuwiki~
02-工程实践/cms/dokuwiki/首页.txt · 最后更改: 2020/04/07 06:34 由 annhe