Title: wpdiscuz.php optimizator CLI
Last modified: August 30, 2016

---

# wpdiscuz.php optimizator CLI

 *  Resolved [bolhaimobiliaria](https://wordpress.org/support/users/bolhaimobiliaria/)
 * (@bolhaimobiliaria)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/)
 * Hello . I’m happy with the new Discuz 3.0.
 * I wondered the possibility of running wpdiscuz.php by command line , to streamline
   the process . Via nginx , I get bad gateway.
 * [https://wordpress.org/plugins/wpdiscuz/](https://wordpress.org/plugins/wpdiscuz/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/page/2/?output_format=md)

 *  Thread Starter [bolhaimobiliaria](https://wordpress.org/support/users/bolhaimobiliaria/)
 * (@bolhaimobiliaria)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711831)
 * More details
 * My blog have almost 1 million comments, is needed a command line for very speed
   optimization process
 *  Plugin Author [gzakar](https://wordpress.org/support/users/gzakar/)
 * (@gzakar)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711835)
 * Hi bolhaimobiliaria,
    Ok, for a very large amount of comments we’re currently
   changing wpdiscuz.php, it’ll work very fast and with minimum requests. Please
   wait for a few hours and we’ll update it. For now you can use 2.2.10 version 
   to show comments on front-end.
 *  Thread Starter [bolhaimobiliaria](https://wordpress.org/support/users/bolhaimobiliaria/)
 * (@bolhaimobiliaria)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711844)
 * No problems
 * On moment, a have a test plataform only, no production 😉
 *  [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711872)
 * Hi, since this topic is current, how will this plugin handle large comment databases?
 * Ours has 3.5+ million comments and before I try to use this, I need to understand
   if if will even work! I have a test site, but my goal would be to get this running
   on the production site this week, if possible.
 * Thanks.
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711877)
 * If comments are all optimized wpDiscuz will work with unlimited number of comments.
   So you can start those optimization even without updating wpDiscuz. Once all 
   is done you can go to Dashboard and update to latest version. The comment optimization
   process doesn’t affect other plugins, even wpDiscuz 2 version. You can start 
   optimization right now.
    Instruction: [https://wordpress.org/support/topic/if-the-supercharge-my-comments-button-does-not-work?replies=1](https://wordpress.org/support/topic/if-the-supercharge-my-comments-button-does-not-work?replies=1)
   It may take a few hours for 3.5+ million comments. You can start with 100 comments
   per page load… During the optimization process if it stops loading (500 error)
   you should change to 50 comment per page and so on… It depends on server, if 
   it’s a weak server you can go with 5-10 comments per page.
 *  [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711880)
 * Thanks, I installed it on the test server and began optimization. Time to go 
   make a quick shrimp curry for lunch while it processes!
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711883)
 * Great!
    Periodically keep an eye on that process. As I said above during the 
   optimization process, it may stops loading (500 error). So you should decrease
   the number of comments after each error. I hope your server is powerful and you’ll
   not have to change that.
 *  Thread Starter [bolhaimobiliaria](https://wordpress.org/support/users/bolhaimobiliaria/)
 * (@bolhaimobiliaria)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711884)
 * Now, I use the web solution
 * But, the server responde 502, for 1 comment !
    I will adapter the original script
   for CLI
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711885)
 * bolhaimobiliaria,
    it seems this is not the optimizer issue. Something is not
   regular on your server. please read this as well: [http://pcsupport.about.com/od/findbyerrormessage/a/502error.htm#inArticleVideo](http://pcsupport.about.com/od/findbyerrormessage/a/502error.htm#inArticleVideo)
 *  Thread Starter [bolhaimobiliaria](https://wordpress.org/support/users/bolhaimobiliaria/)
 * (@bolhaimobiliaria)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711889)
 * Maybe, the problem is much threads for a only comment.
    After 2.6 minutes, the
   server return 502.
 * I will increase default values for my server
 *  [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711899)
 * Retracted. Think I am seeing progress.
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711901)
 * Great to hear that!
 *  [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711906)
 * So, the optimizing does not appear to be working as I am not seeing progress 
   after multiple starts, server reboots, etc. No progress no error messages.
 * I did try the downloaded one and it doesn’t run for me – I get error 500 and 
   never see the Go button.
 * Any ideas? This plugin is perfect for our needs!
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711908)
 * If you see 500 error you should click on browser [back] button than in address
   bar change the “n” variable to e.g. 10:
    wpdiscuz.php?n=**10**&cid=xxxx than [
   enter]
 * Also I just want to let you know, we’re preparing a new version without this 
   optimization step, it does this optimization automatically, for each loaded comment
   separately on first comment load. You’ll not see how all your comments are being
   optimized. That’s very good solution, and that will not bother you. this will
   be released in within next 24-36 hours.
 *  [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/#post-6711909)
 * Thanks, it now seems to be working! I’ll reach out tomorrow if it’s still a problem!

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/page/2/?output_format=md)

The topic ‘wpdiscuz.php optimizator CLI’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 19 replies
 * 4 participants
 * Last reply from: [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wpdiscuzphp-optimizator-cli/page/2/#post-6711980)
 * Status: resolved