Re: [SMARTY] caching example
| From: | Paul Lockaby | Date: | Sun, 30 Mar 2003 19:13:09 +0000 |
| Subject: | Re: [SMARTY] caching example | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8997@lists.php.net to get a copy of this message | ||
Wom.bat wrote:
Are include_php calls cached? The documentation doesn't say anything about that, but since include calls are cached, I can only assume that include_php calls are also cached. -- Paul Lockaby paul@paullockaby.com http://www.paullockaby.comI 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