WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-Filebase Download Manager] Syncing / PHP / Memory

[Plugin: WP-Filebase Download Manager] Syncing / PHP / Memory

  • philip.levine
    Member

    @philiplevine

    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.

    http://wordpress.org/extend/plugins/wp-filebase/

Viewing 3 replies - 1 through 3 (of 3 total)
  • SimonMacFadyen
    Member

    @simonmacfadyen

    Hello phillip,

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

    Thanks,
    Simon

    SimonMacFadyen
    Member

    @simonmacfadyen

    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.

    philip.levine
    Member

    @philiplevine

    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 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Filebase Download Manager] Syncing / PHP / Memory’ is closed to new replies.