Forums / Cotonti / General / Question with caching

Eugene
#34502 2012-06-01 20:44

Hope you, guys, may figure out this. I explain steps I've made:

In header i have a $shablonpath variable which is connected with current category code.

In page.tpl I insert additional sub-template through

{FILE "themes/tvbclassic/inc/{PHP.shablonpath}.tpl"}

That code works great - inserting additional info - depending on cat...

BUT as turn on template caching in config - It looks like it cached first sub-template (depending on cat where I addressed the first) - and put that cache everywhere - in all cats. Turning off the cache make things work immediately...