Skip to content

Commit

Permalink
Item14237: Cache entries are converted from hashes to arrays
Browse files Browse the repository at this point in the history
to simplify manipulations.
  • Loading branch information
vrurg committed Apr 15, 2017
1 parent 4c4378f commit 622770f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Config/Spec/CacheFile.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub storeNodes {

my @entries;
foreach my $node (@_) {
push @entries, { $node->fullName => $node->default };
push @entries, [ $node->fullName => $node->default ];
}

$this->entries( \@entries );
Expand Down Expand Up @@ -79,6 +79,7 @@ around flush => sub {
sub _prepareCached {
my $this = shift;

$this->invalidate;
my $content = $this->content;

return {} unless $content;
Expand Down

0 comments on commit 622770f

Please sign in to comment.