From: Jamie C. <jca...@we...> - 2003-01-06 22:37:14
|
Wai Iu wrote:> Hey; > > In the file web-lib.pl, there are following paramaters used, > such as in flush_webmin_caches() method and in init_config() > method: > > %main::read_file_cache > %main::acl_hash_cache > %main::acl_array_cache > %main::has_command_cache > @main::list_languages_cache > > > I checked the web-lib.pl and did not find any place that they are> being initialized. Where do these parameters come from? Various places : read_file_cache - Set by the read_file_cached function, so that multiple calls for the same file do not have to actually read it. acl_hash_cache and acl_array_cache - Set by read_acl so that /etc/webmin/webmin.acl only has to be read once. has_command_cache - Set by has_command, so that multiple calls for the same command do not have to check the PATH each time. list_languages_cache - Set by list_languages so that lang_list.txt only has to be read once. - Jamie |