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 axeld, 15 years ago

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!

comment:2 by kwurzel, 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:3 by mmlr, 15 years ago

Owner: changed from haiku-web to mmlr
Status: newassigned

I'm reworking it.

comment:4 by mmlr, 15 years ago

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.