The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP-Filebase Download Manager
Syncing / PHP / Memory (4 posts)

  1. philip.levine
    Posted 4 years ago #

    I have a client using your plugin (which has been very useful)
    with 16522 Files, 7387 Categories which is 1.6GB of data

    The client is uploading via FTP and I have the auto sync enabled.

    The issue that I am finding is that even with tossing 300MB+ memory at PHP and giving plenty of time in the script that it seems to be running out of memory and causing the machine to hang.

    Is there anything which can be done to make that script more "graceful" or log what is going on to be able to figure out any solution to this.

    As I said, the script is GREAT, this is the only issue we are having.


  2. SimonMacFadyen
    Posted 4 years ago #

    Hello phillip,

    Do you ever resolve this? Mind sharing your approach..


  3. SimonMacFadyen
    Posted 4 years ago #

    I fixed this.

    Line 99 of Sync.php, the file is being read using md5_hash like so:

    if($hash_sync) $file_hash = @md5_file($file_path);

    It's effectively opening the file to read it. To improve this, change this to:

    if($hash_sync) {
    $file_hash = explode(" ", exec("md5sum $file_path"));
    $file_hash = $file_hash[0];

    Hope the coder sees this and commits the changes to his sync.php.

  4. philip.levine
    Posted 4 years ago #

    Simon - I had not made any changes...so thanks for this change....this helped with the file sync.... now it is getting hung up at sync the categories... getting past the files seem to works nicely :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.