You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/18 23:18:14 UTC
svn commit: r1579075 - /thrift/cms-site/trunk/lib/path.pm
Author: joes
Date: Tue Mar 18 22:18:13 2014
New Revision: 1579075
URL: http://svn.apache.org/r1579075
Log:
improvements
Modified:
thrift/cms-site/trunk/lib/path.pm
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1579075&r1=1579074&r2=1579075&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Tue Mar 18 22:18:13 2014
@@ -6,7 +6,6 @@ use strict;
use warnings;
my $conf = Load(join "", <DATA>);
-my %memo; # maintain a page generation cache
our $runners = 1; # maximize memoization impact
our @patterns = (
@@ -14,17 +13,15 @@ our @patterns = (
conf => $conf,
template => 'default.html',
view => 'single_narrative',
- memo => \%memo,
}],
[qr!^/sitemap\.html$!, sitemap => {
conf => $conf,
headers => { title => "Sitemap" },
- memo => \%memo,
}],
[qr/\.md(?:text)?$/, single_narrative => {
- conf => $conf,
+ conf => $conf,
template => 'default.html',
- memo => \%memo,
+ memo => {}, # maintain a page generation cache
}],
);