PDA

View Full Version : How is the "Page generated in..." coded?


Rickard
Tue 30th Jan '01, 9:10pm
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?

Mike Sullivan
Tue 30th Jan '01, 9:14pm
Like was said on SitePoint (IIRC), it's just a small modification to the wrapper's query function.

Rickard
Tue 30th Jan '01, 9:45pm
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?