in reply to Synchronizing variables (in mod_perl) across Apache instances?
Another solution is to keep the timestamp in your config hash and then decide to refresh from the db every "n" minutes regardless. Then the performance his occurs on a small fraction of the requests.
You could (through stored procedures or your maint page), write the config info to the file system. Then either every request, or comparing timestamps on the file and the hash, refresh as needed.
Or set the apache children to die after "n" requests and when they initalize they can get the current config, etc.
|
|---|