caching
authorx2000habouzit <x2000habouzit>
Sun, 25 Jan 2004 17:51:35 +0000 (17:51 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 25 Jan 2004 17:51:35 +0000 (17:51 +0000)
include/auto.prepend.inc.php
include/xorg.page.inc.php

index 92047b4..0ab6d81 100644 (file)
@@ -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="") {
index 35064b6..a7fbf1a 100644 (file)
@@ -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() { }