Opened 15 years ago
Closed 15 years ago
#4729 closed bug (fixed)
haiku-files.org is snappy, but haiku-files.org/raw, /vmware, /cd are not
Reported by: | luroh | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Website | Version: | R1/alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
http://haiku-files.org responds very quickly while http://haiku-files.org/raw/, http://haiku-files.org/vmware/ and http://haiku-files.org/cd/ do not.
Two possible clues as to what's going on (as picked up on IRC):
"org/ is pure html, raw/, cd/, vmware/ are php"
"it enumerates the whole dir and tries to match filetypes to thumbs and such"
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
We could just use the (styled) output of Apache's mod_autoindex (see http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/ for an explanation). I think Canonical uses it at http://releases.ubuntu.com/9.04/ for example.
Alternatively, we could use a simple PHP Directory listing script like http://www.evoluted.net/community/code/directorylisting.php
I would prefer the first one, as it is much faster (at least in theory)...
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Done. Reworked them, stripped unneeded stuff, sort using PHP, reformat to have a coding style, style the output as well, simplified. Should perform reasonably now.
The site is using a very poorly done PHP script that refills a MySQL database (with each visit) just for sorting and filtering the entries. I've already complained about this since forever. Patches welcome!