Re: [SMARTY] smarty and GNU gettext
| From: | Owen Cole | Date: | Tue, 30 May 2006 18:09:00 +0000 |
| Subject: | Re: [SMARTY] smarty and GNU gettext | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13450@lists.php.net to get a copy of this message | ||
http://smarty.php.net/manual/en/caching.cacheable.php
Look at
*Example 14-11. Preventing a whole passage of a template from being cached*
D_C wrote:
> hi -
>
>> >caching = 2 in the docs too), so just because one part of your page
>> is dynamic doesn't mean you have to lose out on caching altogether.
>>
>> That clearer?
>
> yes, thats awesome, thanks.
> so basically all the language dependent stuff (eg menu button names)
> can be cached.
> And changeable stuff (eg userName) can get processed each page.
>
> hwoever, i think this means using {insert} and sepearate files, so
> things will get a bit broken up. there isnt a way to do something like
>
> {#menuName}
> {noCache}
> {$userName}
> {/noCache}
>
> to allow all the cache/nocache content to be in one file?
>
> thanks a lot!
>
> /dc
>
>