• Resolved jamie_s

    (@jamie_s)


    hi Thom

    Firstly thankyou for creating a great plugin!!

    one slight issue im seeing is fileaway seems to take around 50-60 seconds to display the list of files in a folder which contains just over 1000 files, is there anything that can be done to speed this up?

    https://wordpress.org/plugins/file-away/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author thomstark

    (@thomstark)

    Thanks! It all depends on how many options you’re adding, how big the files are, etc. The more you tell File Away to do, the more it has to do for each of those thousand files. But the biggest contributing factor would be your server. If you’re on shared hosting, or have a mid-range server, you can’t expect super-speed with that many files.

    Thread Starter jamie_s

    (@jamie_s)

    files are word .doc files, currently 1090 of them, all around 160kb each in size..
    fileaway code is the sub folder, directories on, manager on and paginate true

    server is dedicated, and i dont see the cpu or hard drive resources maxed out when accessing the wordpress page.

    Plugin Author thomstark

    (@thomstark)

    I bet it’s actualy a pagination issue. The javascript paginates on dom ready. Do you actually have all 1090 files in a single directory? If so, try disabling pagination just to see if it loads faster.

    Plugin Author thomstark

    (@thomstark)

    Well?

    Thread Starter jamie_s

    (@jamie_s)

    thom,

    sorry i didnt get back to you, yes 1090 files in a single directory, pagination on or off made no difference, however i found if i reduced the file count it loadaed faster so seems to be directly related to the number of files. im assuming it reads all the files to enable it to sort by name / date etc

    Plugin Author thomstark

    (@thomstark)

    Right. Sorting, paging is done client side, so 1090 is an awful lot to load on a single page. It takes a long time to load a 1000+ row CSV file using the File Away Values shortcode, for the same reason. Nothing to do with server side. It’s client-side processing time.

    With files, though, fortunately, that’s why God invented subdirectories. 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘fileaway slow with 1000 files’ is closed to new replies.