Re: [SMARTY] caching example

From: Date: Sun, 30 Mar 2003 02:58:32 +0000
Subject: Re: [SMARTY] caching example
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8990@lists.php.net to get a copy of this message
> I have a site that has logins with usernames and ids and stuff like > that. It shows the username on each page. I want to cache stuff, but I > don't want to cache the usernames. What is the easiest way to display a > username or other user specific information while still caching the rest > of the document? I'm aware that I can use insert, but perhaps there is > some other trick that I'm not aware of... insert is _very_ slow, you better split your template into several smaller ones, so that you can cache parts of the page. I'd recommend an index.tpl file which includes login.inc.php, content.inc.php etc via include_php Regards, David

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