Cache problems with dynamically generated pages

From: Date: Fri, 28 Sep 2001 14:57:00 +0000
Subject: Cache problems with dynamically generated pages
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1573@lists.php.net to get a copy of this message
Hi, I _have_ searched through the archive, but none of the solutions will work for me. I have database-driven pages, and have tried using the following: $design->display("design.tpl", $HTTP_SERVER_VARS["REQUEST_URI"]); The request URI looks like: /casualties/index.php?s_letter=B /casualties/index.php?s_letter=T /casualties/index.php?s_letter=W for example. My code is as follows: --- functions.inc --- define ("SMARTY_DIR","/home/commemor/smarty/"); function show_design($content) {
        global $HTTP_SERVER_VARS;
        $design = new Smarty;
        $design->assign ("CONTENT", $content);
        $design->display("design.tpl", $HTTP_SERVER_VARS["REQUEST_URI"]);
        echo "The request uri is " .$HTTP_SERVER_VARS["REQUEST_URI"];
} ------------------------ --- index.php --- include ("/home/commemor/include/functions.inc"); . . . $smarty = new Smarty; $smarty->assign("list", $list); show_design( $smarty->fetch('index.tpl') ); -------------------- Any suggestions? I really want to get the cache to work, as this is why I chose to use Smarty. Thanks Peter. -oOo- Maple Design - web design, hosting, domain names http://www.mapledesign.co.uk -oOo-

« previous php.smarty.general (#1573) next »