<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : cache problems?</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 19:43:40 -0000</pubDate>

		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Yes I know, but it's all in header, and I want to avoid custom headers, I have an impression that site runs slower if custom headers are enabled.<br />
	I just made a lot of IFs, it looks so-so.</p>
<p>
	Thanks for help :)</p>
]]></description>
			<pubDate>Mon, 22 Oct 2012 11:22:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35900]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	For {PHP.c} differentiation use different templates instead: page.CAT.tpl and page.list.CAT.tpl.</p>
]]></description>
			<pubDate>Sun, 21 Oct 2012 06:31:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35885]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	But sometimes I use {PHP.env.ext} and sometimes {PHP.c} so it's not that easy.</p>
<p>
	Thank you for help anyway. :)</p>
]]></description>
			<pubDate>Sat, 20 Oct 2012 19:22:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35878]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<pre class="brush:java;">
&lt;!-- IF {PHP.lang} == 'pl' --&gt;
{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/pl-{PHP.env.ext}.tpl"}
&lt;!-- ENDIF --&gt;
&lt;!-- IF {PHP.lang} == 'en' --&gt;
{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/en-{PHP.env.ext}.tpl"}
&lt;!-- ENDIF --&gt;</pre>
<p>
	 </p>
]]></description>
			<pubDate>Sat, 20 Oct 2012 11:41:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35875]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Yeah, at first it was like that, but the template was very big and I think it will not be easy to maintain :/ (3 languages, 6 sections, each has different slideshow in different languages)<br />
	I guess I'll have to write a plugin.</p>
]]></description>
			<pubDate>Sat, 20 Oct 2012 09:41:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35874]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	It's probably easiest to use a single template for all languages, and use IF blocks within that template to show stuff for each language.</p>
<pre class="brush:xml;">
&lt;!-- IF {PHP.lang} == 'pl' --&gt;
Polish stuff
&lt;!-- ENDIF --&gt;
&lt;!-- IF {PHP.lang} == 'en' --&gt;
English stuff
&lt;!-- ENDIF --&gt;</pre>
]]></description>
			<pubDate>Sat, 20 Oct 2012 08:31:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35873]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	The output filepath was OK, but the template was cached to the last one used regardless of the language used.</p>
<p>
	So how should I include template based on language and location? Do I really have to write a plugin for it?</p>
]]></description>
			<pubDate>Sat, 20 Oct 2012 07:49:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35872]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	General advice: don't use dynamically calculated variables in tpl FILE statements. FILE statements are static, they are compiled once a template is updated and afterwards the cached template behaves like there is no FILE statement at all but rather the entire file contents stands in its place.</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 18:02:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35862]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	A wild guess, but perhaps you can try {PHP.usr.lang} instead of {PHP.lang}.</p>
<p>
	Also, you may want try outputting the filepath and see what it is before attempting to include it. This could give some insight.</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 15:03:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35859]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Hi;</p>
<p>
	I want to include a tpl based on location and lang.</p>
<p>
	<br />
	This code works:</p>
<pre class="brush:php;">
&lt;!-- IF {PHP.env.ext} == "contact" AND {PHP.lang} == 'pl' --&gt;	

		{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/pl-{PHP.env.ext}.tpl"}

&lt;!-- ENDIF --&gt;</pre>
<p>
	but this one doesn't work:</p>
<pre class="brush:php;">
&lt;!-- IF {PHP.env.ext} == "contact" --&gt;	

		{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/{PHP.lang}-{PHP.env.ext}.tpl"}

&lt;!-- ENDIF --&gt;</pre>
<p>
	Why? The second one would be easier, now I have to repeat the same code for all 3 languages</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 13:39:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7168&d=0#post35857]]></link>
		</item>
	</channel>
</rss>