Skip to content
Permalink
Browse files

Make a safe copy of the config file before modifying it. Fixes bug #1…

…2322.
  • Loading branch information...
perlDreamer committed Feb 4, 2012
1 parent 78159c9 commit 2dbd38f519b98a97d0109edf73e06abd2953bf6b
Showing with 3 additions and 1 deletion.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +2 −1 lib/WebGUI/Cache/CHI.pm
@@ -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
@@ -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
@@ -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;

0 comments on commit 2dbd38f

Please sign in to comment.
You can’t perform that action at this time.