diff options
author | chris <chris@jalakai.co.uk> | 2006-09-23 18:12:06 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-09-23 18:12:06 +0200 |
commit | a424cd8e52ec6e1e860e19467c8cea23871f611f (patch) | |
tree | bf30c7939bc4bcc56d5d0432bd7cf7e1ee1730c5 /inc/init.php | |
parent | 720307d9ce09c85c3b6037fed985128b2bd860a4 (diff) | |
download | rpg-a424cd8e52ec6e1e860e19467c8cea23871f611f.tar.gz rpg-a424cd8e52ec6e1e860e19467c8cea23871f611f.tar.bz2 |
add authname memory cache
actions which concern multiple pages (e.g. search, backlinks, recents)
end up repeatedly encoding the current user's name and groups. This
change caches the results of the encoding allowing them to be reused.
darcs-hash:20060923161206-9b6ab-a3ec8f1c2ec284d84b9ff85cba1e56165b2967a7.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/init.php b/inc/init.php index 2ba16c2c3..1b8f99825 100644 --- a/inc/init.php +++ b/inc/init.php @@ -24,9 +24,10 @@ else { error_reporting(DOKU_E_LEVEL); } // init memory caches - global $cache_revinfo; $cache_revinfo = array(); - global $cache_wikifn; $cache_wikifn = array(); - global $cache_wikifn; $cache_cleanid = array(); + global $cache_revinfo; $cache_revinfo = array(); + global $cache_wikifn; $cache_wikifn = array(); + global $cache_cleanid; $cache_cleanid = array(); + global $cache_authname; $cache_authname = array(); //prepare config array() global $conf; |