|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
froland Smarty n00b
Joined: 16 Nov 2010 Posts: 3
|
Posted: Tue Aug 09, 2011 12:14 pm Post subject: Problem which cache |
|
|
Zdravstvuite.
est' shablon, dopustim pages.tpl s ego pomosch'yu formiruyutsya str.
about.html, history.html i drugie. Esli vklyuchit' keshirovanie, keshiruetsya tol'ko 1 variant na vse str, chto v principe ponyatno.
kak sdelat' chtoby keshirovalis' vse varianty? |
|
Back to top |
|
0r10n Smarty n00b
Joined: 15 Jul 2011 Posts: 3
|
Posted: Wed Aug 10, 2011 5:56 pm Post subject: |
|
|
Для этого нужно использовать группы кэша.
Тоесть, каждой странице присвоить какой-нибудь уникальный айдишник в функции отображения шаблона.
$smarty->display('pages.tpl','about');
http://www.smarty.net/docs/en/caching.groups.tpl |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|