From 2e86210edbe5867d11fe98e690bba1d74a393041 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 1 Sep 2005 01:26:46 +0000 Subject: [PATCH] Cache templates --- blame.php | 5 +++++ browse.php | 5 +++++ diff.php | 7 +++++++ global.php | 2 ++ index.php | 5 +++++ log.php | 6 ++++++ view.php | 4 ++++ 7 files changed, 34 insertions(+) diff --git a/blame.php b/blame.php index f05e6f7..ca8c6f0 100644 --- a/blame.php +++ b/blame.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'blame_line', + 'blame' +); + require_once('./global.php'); $navbar = $viewsvn->paths->construct_breadcrumb($path, false); diff --git a/browse.php b/browse.php index ebb5ed6..8a99649 100644 --- a/browse.php +++ b/browse.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'browse_node', + 'browse' +); + require_once('./global.php'); $navbar = $viewsvn->paths->construct_breadcrumb($path); diff --git a/diff.php b/diff.php index 1e14247..5df40cd 100644 --- a/diff.php +++ b/diff.php @@ -10,6 +10,13 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'diff_line', + 'diff_hunk', + 'diff_file', + 'diff' +); + require_once('./global.php'); $navbar = $viewsvn->paths->construct_breadcrumb($path, false); diff --git a/global.php b/global.php index b6ef8b5..9760eea 100644 --- a/global.php +++ b/global.php @@ -19,6 +19,8 @@ if (!defined('PATH_OVERRIDE') OR PATH_OVERRIDE != 1) $relpath = $viewsvn->paths->fetch_path($path); } +$template->cache((array)$fetchtemplates); + /*=====================================================================*\ || ################################################################### || # $HeadURL$ diff --git a/index.php b/index.php index 50eb9ee..c40ae78 100644 --- a/index.php +++ b/index.php @@ -12,6 +12,11 @@ define('PATH_OVERRIDE', 1); +$fetchtemplates = array( + 'index_node', + 'index' +); + require_once('./global.php'); // ################################################################### diff --git a/log.php b/log.php index 7423298..217d8fa 100644 --- a/log.php +++ b/log.php @@ -10,6 +10,12 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'log_prop', + 'log_node', + 'log' +); + require_once('./global.php'); $navbar = $viewsvn->paths->construct_breadcrumb($path, false); diff --git a/view.php b/view.php index a6be9bb..e889a01 100644 --- a/view.php +++ b/view.php @@ -10,6 +10,10 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'view' +); + require_once('./global.php'); $navbar = $viewsvn->paths->construct_breadcrumb($path); -- 2.22.5