New AJAX Comments module installed


Quick admin stuff:

I’ve installed a new Ajax-Comments plugin, that means that the comment is posted when you click submit without it having to reload the whole page to show it. Did you not notice that sexy drawer effect when you hit submit? That lessens the load on the server a lot (I hope).

I don’t know why it doesn’t display the proper comment number though on that instant, but if you do reload the page (I know, defeats the purpose) you will notice that the numbering is correct.

I’ll try this comment module for a few days and see how it goes. If you have an feedback on this, please let me know.

And I am researching ways to optimise the server, ie, getting the pages to load faster. So bear with me. I’ll tell you when I’m done. The first I’m going to do is install APC (Alternative PHP Cache) and other stuff to kick the server into a higher gear.

I’ll let you know when I’m done playing…

update 18:12 -> ALL DONE!
I’ve finished the optimisation of the site:

I hope you will find that the site loads faster now. Let me know your experiences please if you don’t mind.

There is one more thing I can do, and that is disallow commenting on any article past a certain timeframe; for instance, I can bar commenting on articles over 6 months old, or 3 months old or one year old. This will allow those articles to almost be permanently cached and they will load (theoretically) like greased lightening as they will remain static by definition, hence will only be cached once and be ready for display (only) always.

Would you be okay with that? Let me put up poll and see what you guys think…

Thanks for your patience.

UPDATE 2: 3 Feb, ’07, disabled the Ajax Comments as it was timing out and creating problems.


  1. Pingback: BahBlog

  2. chrisamillion

    hey mahmood,

    nice idea with the comments plugin.

    Speaking of plugins, what antispam plugin do you use? I’ve been experimenting with a few, but they don’t seem to want to work with my template.


  3. Post
  4. Everton

    Thanks for the links! To be honest you don’t really need WP2 if you’ve installed APC. I only turn it on now if my server gets really busy

  5. Post

    Thank YOU Everton for the resources you provided. I shall keep WP2 on for a few days to evaluate the site’s speed then switch it off to compare and make a decision then.

    If you’re still around, can you please let me know what you actually put in the [apc] section of the php.ini file? I’ve just put the wp-cache-config as instructed, but should there be any other things in there or should APC be left at default values?

  6. Butterfly


    I tried to post a comment today and it said “Bad Behavior”! I changed the wording and tried again but the same message keeps popping up!

    Please ask your plugin to behave :angry:

  7. Post


    BadBehavior blocks “malicious” IP addresses and doesn’t care about what the content of your post is. This block is due to Batelco not doing their job and banning spammers from using their network and IP addresses, which causes the spam-fighting databases to list that offending IP address in their records, which is available as a blacklist for various spam fighting programs, BB is one of them.

    Unfortunately the only thing you can do when that happens is:

    1. Tell Batelco that they have yet another IP listed in the spam blacklists
    2. Restart your router so that (hopefully) it will grab another IP address

  8. Post

    Note to self:

    Twice now the db died without notice with plenty of resources available on the server. A db restart was required. No idea what happened, need to look into the logs. :angry:

  9. Post

Comments are closed.