Forums / Cotonti / Support / cache in tpl include.... seriously!

tensh
#36677 2013-01-02 14:12

Hi;

I can't stand the caching in tpl file include. The code like this:

{FILE "./themes/{PHP.cfg.defaulttheme}/inc/{PHP.pag.page_MYEXTRAFIELD}"} doesn't work since the values are cached and aren't dynamic.

Not to mention that the code:

{FILE "./themes/{PHP.cfg.defaulttheme}/inc/{PAGE_ANYTAG}"}

doesn't work at all since {PAGE_ANYTAG} is empty.

Can you please give me any fix/solution? I wanted to include a template based on extrafield value (path), and I'm in a serious trouble now.