N
nicc777
Hi,
I am not exactly new to Perl, but very new to mod_perl.
In short, here is what I want to achieve:
1. Have two global hashes loaded during startup (maybe in startup.pl
??). The values are obtained from a DB
2. From time to time send a special HTTP request to the server to
refresh the hashes from a DB source
In theory, this should prevent me from going to the DB for info that
changes rarely, and when they do change I could have a mechanism (my
idea is around a special HTTP request) to reload the hashes if the data
do change.
Any ideas? Code samples will be most welcome.
Thanks
I am not exactly new to Perl, but very new to mod_perl.
In short, here is what I want to achieve:
1. Have two global hashes loaded during startup (maybe in startup.pl
??). The values are obtained from a DB
2. From time to time send a special HTTP request to the server to
refresh the hashes from a DB source
In theory, this should prevent me from going to the DB for info that
changes rarely, and when they do change I could have a mechanism (my
idea is around a special HTTP request) to reload the hashes if the data
do change.
Any ideas? Code samples will be most welcome.
Thanks