Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item12972: caching issue using VirtualHosting
  • Loading branch information
MichaelDaum committed Sep 26, 2014
1 parent 1a87cd6 commit 3adf1f7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/System/FlexWebListExamples.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1243589047" format="1.1" reprev="1.2" version="1.2"}%
%META:TOPICINFO{author="ProjectContributor" date="1411736309" format="1.1" version="1"}%
%META:TOPICPARENT{name="FlexWebListPlugin"}%
---+!! %TOPIC%

Expand Down
3 changes: 2 additions & 1 deletion data/System/FlexWebListPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1259753380" format="1.1" version="1.2"}%
%META:TOPICINFO{author="ProjectContributor" date="1411736309" format="1.1" version="1"}%
---+!! <nop>%TOPIC%
%TOC%

Expand Down Expand Up @@ -149,6 +149,7 @@ See FlexWebListExamples and FlexWebListTree.
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | &nbsp; |
| 26 Sep 2014: | fixed caching issue when using Foswiki:Extensions/VirtualHostingContrib (Foswiki:Main/MaikGlatki) |
| 28 May 2014: | !TopicTitle defaults to web name (not !WebHome) if not set otherwise |
| 28 Apr 2014: | added support for !TopicTitle |
| 18 Nov 2013: | support =WEBSUMMARY=; deprecate =SITEMAPWAT= and =SITEMAPUSETO= |
Expand Down
2 changes: 1 addition & 1 deletion data/System/FlexWebListTree.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1246626049" format="1.1" version="1.2"}%
%META:TOPICINFO{author="ProjectContributor" date="1411736309" format="1.1" version="1"}%
%META:TOPICPARENT{name="FlexWebListPlugin"}%
---+!! %TOPIC%

Expand Down
14 changes: 9 additions & 5 deletions lib/Foswiki/Plugins/FlexWebListPlugin.pm
Expand Up @@ -17,17 +17,21 @@ package Foswiki::Plugins::FlexWebListPlugin;
use strict;
use warnings;

our $VERSION = '1.91';
our $RELEASE = '1.91';
our $VERSION = '1.92';
our $RELEASE = '1.92';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Flexible way to display hierarchical weblists';
our $core;
our %cores = ();

sub core {

unless (defined $core) {
# Item12972: get the core for this host; note there might be separate cores
# when using VirtualHostingContrib
my $core = $cores{$Foswiki::cfg{DefaultUrlHost}};

unless ($core) {
require Foswiki::Plugins::FlexWebListPlugin::Core;
$core = new Foswiki::Plugins::FlexWebListPlugin::Core;
$core = $cores{$Foswiki::cfg{DefaultUrlHost}} = Foswiki::Plugins::FlexWebListPlugin::Core->new();
}

return $core;
Expand Down

0 comments on commit 3adf1f7

Please sign in to comment.