diff options
author | andi <andi@splitbrain.org> | 2005-06-08 23:35:14 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-06-08 23:35:14 +0200 |
commit | 8746e7272c61513b3e10c595fe9526ccf02c2c4a (patch) | |
tree | 0871ff14b98dbc2710df2a4f93cc90c6e327d398 /lib/exe/fetch.php | |
parent | bdbc16bf99bf53145b1f6d4979326c69f1af2d35 (diff) | |
download | rpg-8746e7272c61513b3e10c595fe9526ccf02c2c4a.tar.gz rpg-8746e7272c61513b3e10c595fe9526ccf02c2c4a.tar.bz2 |
session_write_close added #364
I just learned that PHP does lock it's session objects. This is realy
bad if you have multiple images in a page as each one will call fetch.php
which locks the session, so everything can only be loaded sequentially.
The fix for this is to close the session after using it which is after doing
the auth and the breadcrumbs. I added the needed calls everywhere.
darcs-hash:20050608213514-9977f-f2dfc467ebbd06406e10e33a386fa1db6cb32dba.gz
Diffstat (limited to 'lib/exe/fetch.php')
-rw-r--r-- | lib/exe/fetch.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index 91edbd1d4..fffbf4483 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -12,6 +12,9 @@ require_once(DOKU_INC.'inc/pageutils.php'); require_once(DOKU_INC.'inc/confutils.php'); require_once(DOKU_INC.'inc/auth.php'); + //close sesseion + session_write_close(); + $mimetypes = getMimeTypes(); //get input |