Selective Realtime SQL Monitoring
While investigating unusual WordPress behavior, I needed a way to log all queries to a file for detailed analysis, but stream a subset to the console. This wp-config parameter and snippet in functions.php (from Bob Sherron) logs all queries to … Continue reading