Caching question...

From: Date: Mon, 23 Jul 2001 23:28:55 +0000
Subject: Caching question...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1265@lists.php.net to get a copy of this message
Hi I couldn't make smarty cache work for my pages. Since I think the trouble may be my site set up I will describe it a little: I have a sitewide used layout.tpl. Site has modes and each mode has its own content.tpl. So layout.tpl includes appropriate content.tpl and some other tpl files. As for php files, I have 4 main php files, all of which include a prepend.php and an append.php at the beginning and end of file respectively. prepend.php makes db connection, smarty creation and such as you will guess. First I wanted to put if(!$smarty->is_cached('layout.tpl', $page) ): to prepend.php and endif; to append.php but php didn't like it. Then I tried to enclose all files with if (..)..endif; each one alone, but that didn't work either. $page is unique for each page. Any help is appreciated. Another question: my index page has a simpler setup and caching works easily there. but it prints a very long number at the top of page. how to get rid of that number? Thanks. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

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