Menu

#2 mrtg config is not persistent between calls udeg mod_perl

v1.0_(example)
open
nobody
5
2007-08-21
2007-08-21
Anonymous
No

On everycall the mrtg-config is reparsed and placed into a global value;

Unfortunally the global value is reset on every call of the script (line 140-142)

So the line 140-142 should be altered from:
-------------------<cut>------------------------
# global vars, persistent for speecyCGI/mod_perl
%my14all::config_cache = ();
$my14all::meurl = '';
-------------------<cut>------------------------
to:
-------------------<cut>------------------------
# global vars, persistent for speecyCGI/mod_perl
%my14all::config_cache = () unless (defined %my14all::config_cache);
$my14all::meurl = '' unless (defined $my14all::meurl);
-------------------<cut>------------------------

Discussion


Log in to post a comment.

MongoDB Logo MongoDB