From 039a9d600811191d1436807c6382fce48678b79e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 15 Feb 2007 02:35:06 +0000 Subject: [PATCH] r1412: Using the new database caching feature of ISSO's template system --- docs/schema_changes.sql | 8 ++++++++ global.php | 1 + 2 files changed, 9 insertions(+) diff --git a/docs/schema_changes.sql b/docs/schema_changes.sql index 2839185..a4e1ae1 100644 --- a/docs/schema_changes.sql +++ b/docs/schema_changes.sql @@ -28,4 +28,12 @@ CREATE TABLE adminsession userid INT UNSIGNED NOT NULL, dateline INT UNSIGNED NOT NULL, PRIMARY KEY (sessionid) +); + +CREATE TABLE template +( + filename VARCHAR(255) NOT NULL, + template TEXT NOT NULL, + timestamp INT(10) UNSIGNED NOT NULL, + PRIMARY KEY (filename) ); \ No newline at end of file diff --git a/global.php b/global.php index 7a06422..ab1c508 100755 --- a/global.php +++ b/global.php @@ -29,6 +29,7 @@ $bugsys->load('template_fs', 'template', true); $template->setExtension('tpl'); $template->setPreParseHook('isso_pre_parse_hook'); $template->setTemplateDir('templates/'); +$template->setDatabaseCache(TABLE_PREFIX . 'template'); // ################################################################### // global template variables -- 2.43.5