• I don’t want the $comments array created. In other words, I don’t want $comments reading anything from my MySQL server. (Hopefully admin panel functions will still work after my surgery.)

    I’m going to read comments from my own (faster) database. In other words, I don’t want to load up comments twice, once from MySQL and again from my own database.

    I’m about to start deleting stuff out of wp-includes/comment-template.php

    Maybe I answered my own question?

    Wow, comments_template() doesn’t use a LIMIT?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter PJ Brunet

    (@knowingart_com)

    OK I guess I need to find where comments_template() is called from, maybe that will do it.

    Thread Starter PJ Brunet

    (@knowingart_com)

    comments_template(); is in single.php

    Maybe I’ll just take out that line, paste my comment form into single.php and hope the form still works.

    Thread Starter PJ Brunet

    (@knowingart_com)

    Maybe I can put this off indefinitely. I fixed a query I had that counted comments in MySQL, now I’m using “comment_count” instead. Today I ran “optimize table” and comments_template(); runs in 0.01 seconds according to a PHP timer I made. I need to run more tests but I think I’m in the clear for a while.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to prevent creation of $comments array?’ is closed to new replies.