|
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 |
orao Smarty Rookie
Joined: 23 Dec 2009 Posts: 20
|
Posted: Thu Dec 23, 2021 9:56 am Post subject: Is it possible to disable cache for included templates? |
|
|
Hello,
i have a situation where templates are included with cache_id parameter.
Code: | {include file="subtemplate.tpl" cache_id="uid123"} |
When I set globally $smarty->caching = 0 these included subtemplates still get cached.
Is it somehow possible to disable caching included subtemplates even if they have cache_id defined?
I am trying to avoid
Code: | {if $caching == true}
{include file="subtemplate.tpl" cache_id="uid123"}
{else}
{include file="subtemplate.tpl"}
{/if} |
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
orao Smarty Rookie
Joined: 23 Dec 2009 Posts: 20
|
Posted: Fri Dec 31, 2021 3:03 pm Post subject: |
|
|
No I didn't mean compile_id. Now I understand that passing cache_id explicitly enables caching and there is no way to go around it.
thank you |
|
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
|