Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item13752: fixed creation of web pattern
  • Loading branch information
MichaelDaum committed Sep 25, 2015
1 parent f82a696 commit d466b07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions data/System/DBCachePlugin.txt
@@ -1,5 +1,8 @@
%META:TOPICINFO{author="ProjectContributor" comment="" date="1437149467" format="1.1" version="1"}%
---+!! <nop>%TOPIC%
%SHORTDESCRIPTION%


%TOC%

---++ Description
Expand Down Expand Up @@ -443,15 +446,12 @@ to generate all caches initially. Then switch on the web server again. The cache
automatically from there on.
</div>

---++ Dependencies:
---++ Dependencies
%$DEPENDENCIES%

<!--
* Set SHORTDESCRIPTION = Lightweight frontend to the <nop>DBCacheContrib
-->

---++ Change History

| 25 Sep 2015: | fixed creation of web pattern based on webs param to DBQUERY |
| 09 Sep 2015: | new perl api to register index handlers; \
moved indexing meta comments to Foswiki:Extensions/MetaCommentPlugin;\
fixed fallback of polymorphic calling semantics of DBCALL{topic->method} |
Expand Down Expand Up @@ -585,6 +585,11 @@ automatically from there on.
support for STARTSECTION, old SECTION being deprecated |
| 24 Nov 2005: | Initial version |

<!--
* Set SHORTDESCRIPTION = %$SHORTDESCRIPTION%
-->


%META:FORM{name="PackageForm"}%
%META:FIELD{name="Author" title="Author" value="Michael Daum"}%
%META:FIELD{name="Copyright" title="Copyright" value="2005-2015, Michael Daum http://michaeldaumconsulting.com"}%
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/DBCachePlugin.pm
Expand Up @@ -25,10 +25,10 @@ use Foswiki::Plugins();
#Monitor::MonitorMethod('Foswiki::Contrib::DBCachePlugin::Core');
#Monitor::MonitorMethod('Foswiki::Contrib::DBCachePlugin::WebDB');

our $VERSION = '9.00';
our $RELEASE = '09 Sep 2015';
our $VERSION = '9.01';
our $RELEASE = '25 Sep 2015';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Lightweighted frontend to the DBCacheContrib';
our $SHORTDESCRIPTION = 'Lightweighted frontend to the <nop>DBCacheContrib';

our $isInitialized;
our $addDependency;
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/DBCachePlugin/Core.pm
Expand Up @@ -355,7 +355,7 @@ sub handleDBQUERY {
if ($theWebs eq 'all') {
@webs = Foswiki::Func::getListOfWebs();
} else {
my $webPattern = join("|", split(/\s*,\s*/, $theWebs));
my $webPattern = '^('.join("|", split(/\s*,\s*/, $theWebs)).')$';
@webs = grep {/$webPattern/} Foswiki::Func::getListOfWebs();
}
} else {
Expand Down

0 comments on commit d466b07

Please sign in to comment.