Merge pull request #11 from copenhagentruckwash/development

Add cache clearing after token deletion
This commit is contained in:
Jeppe B
2025-01-22 17:48:52 +01:00
committed by GitHub
+3
View File
@@ -80,5 +80,8 @@ class tokens_o extends db
// Prepare the SQL statement
$sql = "DELETE FROM $this->table WHERE token = '$token'";
$db->query($sql);
// Clear the token from the cache
redis->clear_token($token);
}
}