From 13afcf89ea0cfab8b3486db575a9205a56753b71 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Jan 2006 08:23:33 +0000 Subject: [PATCH] Add cacheV controls to global.php --- global.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/global.php b/global.php index fc40155..d065b15 100644 --- a/global.php +++ b/global.php @@ -21,7 +21,22 @@ require_once('./includes/init.php'); -$dochooser = (defined('PATH_OVERRIDE') AND PATH_OVERRIDE == 1 ? false: true); +$dochooser = ((defined('PATH_OVERRIDE') AND PATH_OVERRIDE == 1) ? false: true); +if ($dochooser) +{ + require_once('./includes/cachev.php'); + $cachev = new cacheV(); + $cachev->set_hash(); + + if ($viewsvn->in['rebuild'] AND $viewsvn->get('debug') == true) + { + $cachev->rebuild(); + } + else + { + $cachev->exec_rebuild(); + } +} $fetchtemplates[] = 'header'; $fetchtemplates[] = 'footer'; -- 2.43.5