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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -