Hello, i'd like to ask about preloading of perl libraries/modules.
I'm using "premodules" miniserv config option to preload some perl libraries and that works fine for me.
However there is another option "preload" which shuold allow to preload a <module>-lib.pl file. But that does not work for me.
I'mean when i have preloaded my lib with this:
preload=lbox_lib2=lbox_lib2/lbox-lib2.pl
and restarted webmin, everything looks fine. But when file changes on the disk, on next cgi executions, the file is being read from disk again, because the changed code is used.</module>
Can anyone please provide example code where preloaded library is used?
Also another question comes to my mind - is there a way to preload some particular cgi scripts? Or shoud i precomplie the cgi script and use that pre-compiled file?
Thanks for help
Tomas Novosad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i'd like to ask about preloading of perl libraries/modules.
I'm using "premodules" miniserv config option to preload some perl libraries and that works fine for me.
However there is another option "preload" which shuold allow to preload a <module>-lib.pl file. But that does not work for me.
I'mean when i have preloaded my lib with this:
preload=lbox_lib2=lbox_lib2/lbox-lib2.pl
and restarted webmin, everything looks fine. But when file changes on the disk, on next cgi executions, the file is being read from disk again, because the changed code is used.</module>
Can anyone please provide example code where preloaded library is used?
Also another question comes to my mind - is there a way to preload some particular cgi scripts? Or shoud i precomplie the cgi script and use that pre-compiled file?
Thanks for help
Tomas Novosad