From aa66bc8ab5ad344f156d9fc2895983ff2216b8a5 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 20 Oct 2010 13:54:50 +0200 Subject: Bug 605693: Make config.cgi?ctype=rdf faster r=timello a=LpSolit --- template/en/default/config.rdf.tmpl | 26 +++++++++++++++----------- template/en/default/filterexceptions.pl | 4 ++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index 0e74bfc44..3162bfd2c 100644 --- a/template/en/default/config.rdf.tmpl +++ b/template/en/default/config.rdf.tmpl @@ -19,6 +19,10 @@ # Frédéric Buclin #%] +[%# The url to the installation is going to be displayed many times. + # So we cache it here for better performance. + %] +[% escaped_urlbase = BLOCK %][% urlbase FILTER xml %][% END %] @@ -27,7 +31,7 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bz="http://www.bugzilla.org/rdf#"> - + [% constants.BUGZILLA_VERSION FILTER html %] [% Param('maintainer') FILTER html %] @@ -118,13 +122,13 @@ [% FOREACH product = products %]
  • - + [% product.name FILTER html %] [% FOREACH component = product.components %] -
  • [% END %] @@ -133,7 +137,7 @@ [% FOREACH version = product.versions %] -
  • +
  • [% END %] @@ -142,7 +146,7 @@ [% FOREACH milestone = product.milestones %] -
  • +
  • [% END %] @@ -160,7 +164,7 @@ [% FOREACH product = products %] [% FOREACH component = product.components %]
  • - [% component.name FILTER html %] [% IF show_flags %] @@ -170,7 +174,7 @@ [% FOREACH flag_type = flag_types %] [% NEXT UNLESS flag_type.is_active %] [% all_visible_flag_types.${flag_type.id} = flag_type %] -
  • [% END %] @@ -188,7 +192,7 @@ [% FOREACH product = products %] [% FOREACH version = product.versions %]
  • - + [% version.name FILTER html %]
  • @@ -203,7 +207,7 @@ [% FOREACH product = products %] [% FOREACH milestone = product.milestones %]
  • - + [% milestone.name FILTER html %]
  • @@ -218,7 +222,7 @@ [% FOREACH flag_type = all_visible_flag_types.values.sort('name') %]
  • - [% flag_type.id FILTER html %] [% flag_type.name FILTER html %] @@ -243,7 +247,7 @@ [% PROCESS "global/field-descs.none.tmpl" %] [% FOREACH item = field %]
  • - + [% item.name FILTER html %] [% (field_descs.${item.name} OR item.description) FILTER html %] [%-# These values are meaningful for custom fields only. %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 799371f63..099748122 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -504,4 +504,8 @@ 'group.id', ], +'config.rdf.tmpl' => [ + 'escaped_urlbase', +], + ); -- cgit v1.2.3-24-g4f1b