experimental caching
This commit is contained in:
parent
b9bff5a2f6
commit
cde333e931
5 changed files with 29 additions and 15 deletions
|
|
@ -460,7 +460,7 @@ sub open {
|
|||
my $configFile = shift;
|
||||
my $request = shift;
|
||||
my $server = shift;
|
||||
my $config = WebGUI::Config->new($webguiRoot,$configFile);
|
||||
my $config = WebGUI->config || WebGUI::Config->new($webguiRoot,$configFile);
|
||||
my $self = {_config=>$config, _server=>$server};
|
||||
bless $self , $class;
|
||||
|
||||
|
|
|
|||
|
|
@ -160,8 +160,8 @@ sub dir_config {
|
|||
my ( $self, $c ) = @_;
|
||||
|
||||
# Translate the legacy WebguiRoot and WebguiConfig PerlSetVar's into known values
|
||||
return $self->{env}->{'wg.WEBGUI_ROOT'} if $c eq 'WebguiRoot';
|
||||
return $self->{env}->{'wg.WEBGUI_CONFIG'} if $c eq 'WebguiConfig';
|
||||
return WebGUI->root if $c eq 'WebguiRoot';
|
||||
return WebGUI->config_file if $c eq 'WebguiConfig';
|
||||
|
||||
# Otherwise, we might want to provide some sort of support (which Apache is still around)
|
||||
return $self->{env}->{"wg.DIR_CONFIG.$c"};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue