r1412: Using the new database caching feature of ISSO's template system
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Feb 2007 02:35:06 +0000 (02:35 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Feb 2007 02:35:06 +0000 (02:35 +0000)
docs/schema_changes.sql
global.php

index 2839185891ebbf46432138a5886f62ce7cb227eb..a4e1ae1cbccbf5913cbcdce58f5fa5ff95c6aad3 100644 (file)
@@ -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
index 7a064226719350a25e2135e4d58b0c3d14dd83fc..ab1c5086d1df813b99ea022f3a9c498b9c2de811 100755 (executable)
@@ -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