1

How can I find out whether my Drupal 7 site using persistent connection or not? And it's possible to turn it on if it's not?

1 Answer 1

1

If the persistent connections is not enabled you can enable it by adding this to settings.php:

ini_set('mysql.allow_persistent', TRUE);

And you just do like this to turn it off:

ini_set('mysql.allow_persistent', TRUE);

To check is persistent connections is enabled go to /admin/reports/status/php, and search for allow_persistent.

1
  • Thank you. How can I check whether it really works or not? Maybe somewhere in Drupal logs/reports Commented May 10, 2018 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.