<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: solve caching problem with external php file</title>
		<link>http://www.kriesi.at/support/topic/solve-caching-problem-with-external-php-file</link>
		<description>Support Forum - Topic: solve caching problem with external php file</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 09:10:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/solve-caching-problem-with-external-php-file" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "solve caching problem with external php file"</title>
			<link>http://www.kriesi.at/support/topic/solve-caching-problem-with-external-php-file#post-93597</link>
			<pubDate>Sun, 27 Jan 2013 10:03:17 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">93597@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Unfortunately the php based browser detection won't work correctly if you cache the page content. Some cache plugins offer an &#34;exclude code&#34; feature (i.e. &#60;a href=&#34;http://wordpress.org/support/topic/plugin-w3-total-cache-how-can-i-exclude-some-code-form-bein-cached&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/plugin-w3-total-cache-how-can-i-exclude-some-code-form-bein-cached&#60;/a&#62; ). The only solution would be to implement a js based browser detection but we've no plans to implement it in the near future.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>radugidei on "solve caching problem with external php file"</title>
			<link>http://www.kriesi.at/support/topic/solve-caching-problem-with-external-php-file#post-93537</link>
			<pubDate>Sat, 26 Jan 2013 22:20:07 +0000</pubDate>
			<dc:creator>radugidei</dc:creator>
			<guid isPermaLink="false">93537@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;i'm trying to solve the still unsolved problem that when using any caching plugin, the following line from the header gets cached too :&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;html lang=&#38;quot;en-US&#38;quot; prefix=&#38;quot;og: &#60;a href=&#34;http://ogp.me/ns#&#38;#038;quot&#34; rel=&#34;nofollow&#34;&#62;http://ogp.me/ns#&#38;#038;quot&#60;/a&#62;; class=&#38;quot;safari safari6 html_boxed responsive &#38;quot;&#38;gt;&#60;/code&#62;&#60;br /&#62;
, serving safari pages to IE and any other combination of browsers, based on the first user to visit the page after caches are cleared (or rebuilt).&#60;/p&#62;
&#60;p&#62;i've tried putting the code that detects the browser in a separte file, called browser.php. this is called from the header with :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?PHP
echo file_get_contents(&#38;#39;browser.php&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;code in browser.php :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $avia_config;
if (function_exists(&#38;#39;avia_get_browser&#38;#39;)) {
echo avia_get_browser(&#38;#39;class&#38;#39;, true);
}
else {
	echo &#38;quot;NO-WORKY&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
