Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When running a long process the DB connection can be dropped. Pinging the DB would keep the connection alive.
Comment | File | Size | Author |
---|---|---|---|
#3 | httprl-1909120-2-ping-db.patch | 2.12 KB | mikeytown2 |
#2 | httprl-1909120-1-ping-db.patch | 2.02 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedI think system_get_files_database() would be a good "db ping" function.
$files
would be an empty array and$type
could be 'db_ping'.Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedPatch still needs to take into account not running under drupal. Other than that it should be ready to go.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedThe following patch has been committed to 6.x & 7.x