Navigation Menu

Skip to content

Commit

Permalink
Make a safe copy of the config file before modifying it. Fixes bug #1…
Browse files Browse the repository at this point in the history
…2322.
  • Loading branch information
perlDreamer committed Feb 4, 2012
1 parent 78159c9 commit 2dbd38f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
@@ -1,5 +1,6 @@
7.10.25
- fixed #12321: Error while deleting a group.
- fixed #12322: Cache/CHI stomps on the config file

7.10.24
- fixed #12318: asset error causes asset manager to fail
Expand Down
3 changes: 2 additions & 1 deletion lib/WebGUI/Cache/CHI.pm
Expand Up @@ -3,6 +3,7 @@ package WebGUI::Cache::CHI;
use strict;
use base 'WebGUI::Cache';
use File::Temp qw/tempdir/;
use clone qw/clone/;
use CHI;

=head1 NAME
Expand Down Expand Up @@ -92,7 +93,7 @@ sub new {
# Create CHI object from config
my $chi;
unless ( $chi = $session->stow->get( "CHI" ) ) {
my $cacheConf = $session->config->get('cache');
my $cacheConf = clone $session->config->get('cache');
$cacheConf->{namespace} = $namespace;
$cacheConf->{is_size_aware} = 1;

Expand Down

0 comments on commit 2dbd38f

Please sign in to comment.