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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -