Apache-BabyConnect
view release on metacpan or search on metacpan
of the connection as the httpd servers start up. Each server
will be started with 4 database descriptors, therefore each server
will have 4 active DBI::BabyConnect objects that will server
4 data sources. While a descriptor is uniquely identified by its
name, two or more descriptors can point to the same data source. The
sample scripts delivered with the distribution use all database
descriptors that point to the same data source.
4- Make sure that you have copied the test scripts from
/opt/Apache-BabyConnect-0.93/eg/perl/ to /var/www/perl
and you have set their permission to executable (chmod 755 /var/www/perl/*.pl)
Test your connection from a browser:
http://yourserver.com/perl/testbaby.pl
5- Test the caching:
http://yourserver.com/perl/testcache.pl
Keep on requesting testcache.pl for couple of time and observe
the counter of the cached database descriptor increasing.
Request http://yourserver.com/perl/testbaby.pl
( run in 0.352 second using v1.01-cache-2.11-cpan-496ff517765 )