diff options
author | YoBoY <yoboy.leguesh@gmail.com> | 2010-03-23 22:50:41 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-03-24 21:27:23 +0100 |
commit | 229529655f061863ec76db9ea557fef8b1a5161b (patch) | |
tree | a0363b7385e7a2e4f16e4c3bb65e1ee1475d2108 /conf | |
parent | 3371a8b471eea344a99f015cdf0ef9089b1f20ef (diff) | |
download | rpg-229529655f061863ec76db9ea557fef8b1a5161b.tar.gz rpg-229529655f061863ec76db9ea557fef8b1a5161b.tar.bz2 |
Limiting use of readdir in the idx_indexLengths function (v2).
Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/dokuwiki.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php index 19397861c..d3823eb94 100644 --- a/conf/dokuwiki.php +++ b/conf/dokuwiki.php @@ -156,3 +156,4 @@ $conf['ftp']['user'] = 'user'; $conf['ftp']['pass'] = 'password'; $conf['ftp']['root'] = '/home/user/htdocs'; +$conf['readdircache'] = 0; //time cache in second for the readdir opération, 0 to deactivate. |