File management system... cached page for each file?

Discussion in 'Programming' started by kanter, Oct 30, 2008.

  1. #1
    Hey all,

    I have a website with many files for public sharing. Its a very simply setup. We have around 20 sub-directories (divided into file categories but all the same types of files) under the main file directory.

    Right now we are using the AutoIndex script for uploading new files from the frontend.

    The script is great except, when too many users execute a search from the main file directory, it overloads our server.

    Is it possible with this script or even some other script to have a cached php/etc page for each file in the subirectories? Then have a search function in the main directory that can search the cached pages of all the subdirectory files?

    Hope that makes sense. The simplest solution would be preferrable. I know there are many Perl search engines out there but most seem to complex for our needs...?

    Thanks guys.
     
    kanter, Oct 30, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Here is the idea:

    User search for "xx" on your site. Do the following:

    1) see if xx.html exist in folder cache.
    2) if exist, check how old.
    3) if doesn't exist or older than X days, store the results in a new page (or overwrite existing one) to an xx.html file and store it in cache folder.

    Peace,
     
    Barti1987, Oct 30, 2008 IP
  3. kanter

    kanter Banned

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your advice mate. I think its over our skill level haha. We are looking for something that can auto-generate cached pages of each file in the subdirectories since our files are updated every day. We don't currently have a cached-page-generating system.
     
    kanter, Oct 30, 2008 IP
  4. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #4
    i can accomplish something like that for you. pm me with your gtalk/icq/msn/yahoo messenger id.
     
    happpy, Oct 30, 2008 IP