07-18-2012, 02:17 PM | #1 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Tracing MySQL Queries in Vbulletin
Sometimes you find the need to to trace back where queries are coming from, whether they be in your slow log, or if you are watching them real time. Sometimes it can be hard finding which script is firing certain queries. By editing includes/class_core.php, you can insert a MySQL comment at the end of all queries telling you what script was invoked when the call was made. Find this code:
PHP Code:
PHP Code:
Code:
SELECT * FROM thread where userid = 901324 #Executed from showthread |
Reply With Quote |
Reply |
Tags |
vbulletin code
,
|
Thread Tools | |
|
|