DokuWiki 使用技巧

风行水上 @ 2010-08-01 14:45:52
标签:

    页面导出

    • doku.php?do=export_raw
    • doku.php?do=export_xhtml
    • doku.php?do=export_xhtmlbody

    Cache(缓存)

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

    重命名 doku.php

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

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

    删除不必要的语言文件

    • 好处是可以减小文件夹大小. e.g. 从 33.5K => 17.3K
    # Remove Dummy Lang
    find . -type d -path "*lang/*" | egrep -v "/en|/zh" | xargs rm -rf
    </code> 
    
    
    
    
    标签:

      分享到:
      comments powered by Disqus

      30/34ms