alpha cleanup

This commit is contained in:
robert dennis
2026-10-08 19:17:30 -04:00
parent e217e42360
commit 135b298560
93 changed files with 1231 additions and 919 deletions
@@ -7,6 +7,7 @@ namespace Pterodactyl\Extensions;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\DB;
use Pterodactyl\Models\DatabaseHost;
class DynamicDatabaseConnection
@@ -38,5 +39,9 @@ class DynamicDatabaseConnection
'charset' => self::DB_CHARSET,
'collation' => self::DB_COLLATION,
]);
// The manager caches resolved connections by name, so drop the previous host's
// connection or the next DB::connection() call keeps talking to it.
DB::purge($connection);
}
}