php - Non persistent pg connections -


i've changed pgsql.allow_persistent off in /etc/php.ini, , restarted apache.

now i'm getting identical pg handles 2 consecutive pg_connect.

array ( [0] => resource id #14 [1] => resource id #14 ) 

my question is, php still using persistent connections, , should done if answer yes.

php caches connections within given script run, multiple connect calls same params return same connection.

unlike persistent connections caching occurs within single script run.

as found, can disable caching force new flag - pgsql_connect_force_new.


Comments

Popular posts from this blog

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -