Hi all, A Mod_perl question if I may! Please shout if I haven't made my situation clear
Application behaviour: Step 1. The user requests a page and a Mod_perl script is called. Step 2. Based on user input, the script will dynamically 'require' a particular module. This module calls a method from a .so file (The .so file has been compiled from C and contains a number of statistical math calls best done in C - this was then wrapped using SWIG for perl use) Step 3. The method call from the .so file returns a value to the module and then the calling script. This drives logic in the originating Mod_perl script. Step 4. Content is returned to the user Question: What with the nature of the statistics I need to call from the compiled shared objects, I am recompiling the .so files about twice a day (as situations change). I need to update the .so files and their corresponding .pm module files. Does anyone have any suggestions as to how I could expire the old ones the Mod_perl processes would be using get Mod_perl to pick up the newly updated .so and .pm files? I would have a directory of roughly 100 .so files and their corresponding .pm files (generated by SWIG) that would be dynamically 'required' by calling scripts, about half of these 100 shared objects would be recompiled about twice a day! Any thoughts much appreciated! Regards Ben