Announcement

Collapse
No announcement yet.

How is the "Page generated in..." coded?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How is the "Page generated in..." coded?

    At the end of every page vB 2.0 generates there is a HTML comment that sais something like:

    <!-- Page generated in 0.623834 seconds with 21 queries -->

    How is that done? I know how the time is calculated, but how are the queries counted? Does the number of queries represent the variable "questions" I can read in winmysqladmin?

  • #2
    Like was said on SitePoint (IIRC), it's just a small modification to the wrapper's query function.

    Comment


    • #3
      Ok, I'm sorry. I just wanted to hear it from you guys. I wasn't sure if it was correct.

      But does the number of queries represent the variable "questions" I can read in winmysqladmin?

      Comment

      Loading...
      Working...
      X