From d500b95fd07b88d05ba3a9555098a97857788c21 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 25 Jan 2004 17:51:35 +0000 Subject: [PATCH] caching --- include/auto.prepend.inc.php | 3 +++ include/xorg.page.inc.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/auto.prepend.inc.php b/include/auto.prepend.inc.php index 92047b4..0ab6d81 100644 --- a/include/auto.prepend.inc.php +++ b/include/auto.prepend.inc.php @@ -19,6 +19,9 @@ function _new_page($type, $tpl_name, $tpl_head, $min_auth, $admin=false) { $page->assign('xorg_head', $tpl_head); $page->assign('xorg_tpl', $tpl_name); + + $page->compile_check=true; +// $page->caching=true; // XXX note sure for now } function new_skinned_page($tpl_name, $min_auth, $tpl_head="") { diff --git a/include/xorg.page.inc.php b/include/xorg.page.inc.php index 35064b6..a7fbf1a 100644 --- a/include/xorg.page.inc.php +++ b/include/xorg.page.inc.php @@ -37,7 +37,7 @@ class XorgPage extends DiogenesCorePage { function make_id() { $auth = (empty($_SESSION['auth']) ? 0 : $_SESSION['auth']); $perms = (empty($_SESSION['perms']) ? 0 : $_SESSION['perms']); - return $this->_tpl."|$auth|$perms"; + return $this->_tpl."-$auth-$perms"; } function doAuth() { } -- 2.1.4