Title: [Plugin: WP-Filebase Download Manager] Syncing / PHP / Memory
Last modified: August 20, 2016

---

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

 *  [philip.levine](https://wordpress.org/support/users/philiplevine/)
 * (@philiplevine)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-syncing-php-memory/)
 * 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/](http://wordpress.org/extend/plugins/wp-filebase/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [SimonMacFadyen](https://wordpress.org/support/users/simonmacfadyen/)
 * (@simonmacfadyen)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-syncing-php-memory/#post-2809762)
 * Hello phillip,
 * Do you ever resolve this? Mind sharing your approach..
 * Thanks,
    Simon
 *  [SimonMacFadyen](https://wordpress.org/support/users/simonmacfadyen/)
 * (@simonmacfadyen)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-syncing-php-memory/#post-2809763)
 * 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.
 *  Thread Starter [philip.levine](https://wordpress.org/support/users/philiplevine/)
 * (@philiplevine)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-syncing-php-memory/#post-2809770)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-filebase_ffff6e.svg)
 * [WP-Filebase Download Manager](https://wordpress.org/plugins/wp-filebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-filebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-filebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-filebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-filebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-filebase/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [philip.levine](https://wordpress.org/support/users/philiplevine/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-download-manager-syncing-php-memory/#post-2809770)
 * Status: not resolved