// pack das am besten in eine eigene Datei z. B. wp-content/mu-plugins/query-tracker.php add_action('muplugins_loaded', function () { define('SAVEQUERIES', true); }); add_action('shutdown', function () { global $wpdb; if (!isset($wpdb->queries)) { error_log("❌ Keine Queries aufgezeichnet."); return; } $queries = $wpdb->queries; $count = count($queries); error_log("📊 Gesamte Anzahl der Queries: {$count}"); // Gruppierung nach Tabelle $tables = []; foreach ($queries as $query) { $sql = $query[0]; $table = 'unknown'; if (preg_match('/FROM\s+([^\s;]+)/i', $sql, $matches)) { $table = $matches[1]; } elseif (preg_match('/INTO\s+([^\s;]+)/i', $sql, $matches)) { $table = $matches[1]; } elseif (preg_match('/UPDATE\s+([^\s;]+)/i', $sql, $matches)) { $table = $matches[1]; } $tables[$table] = ($tables[$table] ?? 0) + 1; } arsort($tables); error_log("📦 Tabelle → Query-Anzahl:"); foreach ($tables as $table => $qty) { error_log("📦 {$table}: {$qty}"); } }); Kinderpflanzkelle (Handschaufel) Archive - die-werkkiste.de

Kinderpflanzkelle (Handschaufel)