public function dbQD($id, $table, $field = "id", $signe = "=", $limit = ' LIMIT 1 ') { $d = "DELETE FROM " . $table . " WHERE " . $field . " " . $signe . " '" . $id . "' {$limit} "; //echo $d; $this->dbpdo->query($d); $fieldToCache = array('id'); $noCacheTables = array('_users', '_users_groupes', '_dg_firewall', '_users_info'); if (!in_array($table, $noCacheTables) && in_array($table, $noCacheTables)) { // supression du cache $fileName = $table . '-' . $fieldId . '-' . $id . '.php'; $cache = new DBCache($table, $fileName); $cache->clear(); } }