non cached parts
| From: | Linus McCabe | Date: | Thu, 03 Jan 2002 07:33:32 +0000 |
| Subject: | non cached parts | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2482@lists.php.net to get a copy of this message | ||
Hello,
afaik the only way of including non-cached parts in cached pages is by using the {insert} tag. This works fine, but sometimes it's a bit inconvenient to have to put the code you want included in a function and return the html you wish to have. (as parts of the contents get seperated from the template)
I wonder if it would be possible to add an option to the {php} tag like this:
{php cache="false"}
echo time();
{/php}
that tells smarty not to execute the phpcode and save the contents in the cached html, but to execute the phpcode every time the page is accessed.
/Linus