From: Frédéric Buclin Date: Wed, 20 Oct 2010 12:09:02 +0000 (+0200) Subject: Bug 605693: Make config.cgi?ctype=rdf faster X-Git-Tag: bugzilla-3.6.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9008e3fababba738ba837c44a7f1510ec1766e;p=thirdparty%2Fbugzilla.git Bug 605693: Make config.cgi?ctype=rdf faster r=timello a=LpSolit --- diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index ec80f76010..dd4065bdbd 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 2c096df73a..cc4d09d3e5 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -528,4 +528,8 @@ 'group.id', ], +'config.rdf.tmpl' => [ + 'escaped_urlbase', +], + );