<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WP Super Cache 0.9.8</title>
	<atom:link href="http://ocaoimh.ie/wp-super-cache-098/feed/" rel="self" type="application/rss+xml" />
	<link>http://ocaoimh.ie/wp-super-cache-098/</link>
	<description>Look what I found today!</description>
	<lastBuildDate>Sat, 20 Mar 2010 03:33:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Donncha</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-672094</link>
		<dc:creator>Donncha</dc:creator>
		<pubDate>Wed, 27 Jan 2010 14:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-672094</guid>
		<description>Check out trunk, or the dev version. That will grab the list of mobile UAs from wp-mobile-edition if the right function exists.

Beware because trunk is where the object cache version is too, activate it if you&#039;re brave!</description>
		<content:encoded><![CDATA[<p>Check out trunk, or the dev version. That will grab the list of mobile UAs from wp-mobile-edition if the right function exists.</p>
<p>Beware because trunk is where the object cache version is too, activate it if you&#8217;re brave!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Clarke</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-671946</link>
		<dc:creator>Jeremy Clarke</dc:creator>
		<pubDate>Thu, 21 Jan 2010 22:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-671946</guid>
		<description>I&#039;m not very confident about my ability to edit the regex without borking it so I haven&#039;t updated it manually yet. 

IMHO if you apply the same principle to this issue as you do to the general &#039;your .htaccess is out of date cause you turned on mobile support&#039; situation then I think that&#039;s good enough. Just tell people that they should update it manually based on what&#039;s in the htaccess box. If they notice the problem then they come to the Supercache settings at which point they get the notice. 

It might be good to be kind of aggressive about notifying people though (show that message in dashboard and not just on the supercache settings). Now that the setting to not cache logged-in pageviews is there I think a lot of people are completely unnaware that the mobile issue exists because they never see the cached (mobile) version of their sites. My org only noticed cause outsiders were telling us there was a problem, we had hundreds of users all logged in and oblivious to the problem. 

&lt;b&gt;Temporary Solution&lt;/b&gt;

For anyone else experiencing the problem I came up with some plugin code (functions.php should be a viable place to put it) that fixes the problem temporarily by stopping supercache from ever caching mobile pages. 

Here it is: &lt;a href=&quot;http://pastie.org/788981&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/788981&lt;/a&gt;

Using this means you don&#039;t benefit from caching for mobile users, they will always generate their views fresh, but your normal users won&#039;t ever see the mobile version. It seems that doing this doesn&#039;t interfere with the user-agents that Supercache accounts for (iphone,ipod, android, all the major players), so they will still consistently show the mobile version of the site. For user agents that Supercache isn&#039;t aware of (new ones in mobile-edition or ones you added yourself) they will be sent to any pages that were supercached in the general pool (i.e. normal theme), but if they visit a url that hasn&#039;t been supercached they will see the mobile version. 

I&#039;m not sure but maybe using that code inside supercache itself would make sense. Especially if combined with whatever mobile checking you are doing in supercache. I.e. IF mobile-edition thinks its mobile AND Supercache DOESNT think its mobile then don&#039;t cache the file. That situation theoretically shouldn&#039;t exist, and in practice that situation is exactly the one that is creating the bug.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not very confident about my ability to edit the regex without borking it so I haven&#8217;t updated it manually yet. </p>
<p>IMHO if you apply the same principle to this issue as you do to the general &#8216;your .htaccess is out of date cause you turned on mobile support&#8217; situation then I think that&#8217;s good enough. Just tell people that they should update it manually based on what&#8217;s in the htaccess box. If they notice the problem then they come to the Supercache settings at which point they get the notice. </p>
<p>It might be good to be kind of aggressive about notifying people though (show that message in dashboard and not just on the supercache settings). Now that the setting to not cache logged-in pageviews is there I think a lot of people are completely unnaware that the mobile issue exists because they never see the cached (mobile) version of their sites. My org only noticed cause outsiders were telling us there was a problem, we had hundreds of users all logged in and oblivious to the problem. </p>
<p><b>Temporary Solution</b></p>
<p>For anyone else experiencing the problem I came up with some plugin code (functions.php should be a viable place to put it) that fixes the problem temporarily by stopping supercache from ever caching mobile pages. </p>
<p>Here it is: <a href="http://pastie.org/788981" rel="nofollow">http://pastie.org/788981</a></p>
<p>Using this means you don&#8217;t benefit from caching for mobile users, they will always generate their views fresh, but your normal users won&#8217;t ever see the mobile version. It seems that doing this doesn&#8217;t interfere with the user-agents that Supercache accounts for (iphone,ipod, android, all the major players), so they will still consistently show the mobile version of the site. For user agents that Supercache isn&#8217;t aware of (new ones in mobile-edition or ones you added yourself) they will be sent to any pages that were supercached in the general pool (i.e. normal theme), but if they visit a url that hasn&#8217;t been supercached they will see the mobile version. </p>
<p>I&#8217;m not sure but maybe using that code inside supercache itself would make sense. Especially if combined with whatever mobile checking you are doing in supercache. I.e. IF mobile-edition thinks its mobile AND Supercache DOESNT think its mobile then don&#8217;t cache the file. That situation theoretically shouldn&#8217;t exist, and in practice that situation is exactly the one that is creating the bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-671942</link>
		<dc:creator>Donncha</dc:creator>
		<pubDate>Thu, 21 Jan 2010 21:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-671942</guid>
		<description>Yeah, I copied the user agents from there. I&#039;ll download it again and update them.

Did you update the user agents in the .htaccess file? I can make the plugin check the list of mobile user agents in that file but I shy away from updating it automatically.</description>
		<content:encoded><![CDATA[<p>Yeah, I copied the user agents from there. I&#8217;ll download it again and update them.</p>
<p>Did you update the user agents in the .htaccess file? I can make the plugin check the list of mobile user agents in that file but I shy away from updating it automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Clarke</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-671939</link>
		<dc:creator>Jeremy Clarke</dc:creator>
		<pubDate>Thu, 21 Jan 2010 19:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-671939</guid>
		<description>So i&#039;m looking into it more and from what I can tell your list of mobile browsers used to generate the .htaccess files is completely hardcoded into the wp-cache.php file. 

I can&#039;t understand exactly what is happening in the .htaccess file, but it seems like this is a recipe for disaster. It means that if the user agent strings set in wp-cache.php differ from the ones set in the options for WP-Mobile-Edition then those strings that are only in the Mobile Edition settings will effectively get ignored by whatever is happening in .htaccess. 

I have a feeling this is what is causing the intermittent bugs we&#039;ve been experiencing. When I try it with my iPhone it works fine because my iPhone user-agent is accounted for in Supercache. But when someone with one of the unsynced user-agents comes Supercache saves the mobile version of the site as a regular cache. 

When you first added mobile support, did you just copy the default user-agents from wp-mobile-edition? If so you should at least update the list, as many have been added, notably the &#039;Googlebot-Mobile&#039; user agent, which sounds like it might come by often to cause problems. 

Ideally Supercache should recheck the saved list of mobile user agents from mobile-edition regularly to make sure they match. The .htaccess part of Supercache should be auto-generated from that list and the user shoudl be reminded to update their .htaccess if the lists dont&#039; match. 

Hope this makes sense, any insight is very welcome.</description>
		<content:encoded><![CDATA[<p>So i&#8217;m looking into it more and from what I can tell your list of mobile browsers used to generate the .htaccess files is completely hardcoded into the wp-cache.php file. </p>
<p>I can&#8217;t understand exactly what is happening in the .htaccess file, but it seems like this is a recipe for disaster. It means that if the user agent strings set in wp-cache.php differ from the ones set in the options for WP-Mobile-Edition then those strings that are only in the Mobile Edition settings will effectively get ignored by whatever is happening in .htaccess. </p>
<p>I have a feeling this is what is causing the intermittent bugs we&#8217;ve been experiencing. When I try it with my iPhone it works fine because my iPhone user-agent is accounted for in Supercache. But when someone with one of the unsynced user-agents comes Supercache saves the mobile version of the site as a regular cache. </p>
<p>When you first added mobile support, did you just copy the default user-agents from wp-mobile-edition? If so you should at least update the list, as many have been added, notably the &#8216;Googlebot-Mobile&#8217; user agent, which sounds like it might come by often to cause problems. </p>
<p>Ideally Supercache should recheck the saved list of mobile user agents from mobile-edition regularly to make sure they match. The .htaccess part of Supercache should be auto-generated from that list and the user shoudl be reminded to update their .htaccess if the lists dont&#8217; match. </p>
<p>Hope this makes sense, any insight is very welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Clarke</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-671671</link>
		<dc:creator>Jeremy Clarke</dc:creator>
		<pubDate>Thu, 14 Jan 2010 02:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-671671</guid>
		<description>Hey Donncha, we&#039;ve been experiencing some strange problems with the interaction between wp-mobile-edition and wp-supercache. I&#039;ve carefully checked that all the .htaccess files are correctly written and the mobile support option is checked but we are still seeing some posts getting cached in mobile format and shown to desktop browser users. 

I&#039;m going to do some more testing with the debugging, but was wondering if you&#039;ve been hearing about this from other people or have other advice? 

Maybe a solution would be to just block all mobile user agents from caching in the &quot;Rejected User Agents&quot; section? Would that work? Maybe just set the DONOTCACHEPAGE constant at &#039;init&#039; if the mobile edition plugin claims its a mobile page?</description>
		<content:encoded><![CDATA[<p>Hey Donncha, we&#8217;ve been experiencing some strange problems with the interaction between wp-mobile-edition and wp-supercache. I&#8217;ve carefully checked that all the .htaccess files are correctly written and the mobile support option is checked but we are still seeing some posts getting cached in mobile format and shown to desktop browser users. </p>
<p>I&#8217;m going to do some more testing with the debugging, but was wondering if you&#8217;ve been hearing about this from other people or have other advice? </p>
<p>Maybe a solution would be to just block all mobile user agents from caching in the &#8220;Rejected User Agents&#8221; section? Would that work? Maybe just set the DONOTCACHEPAGE constant at &#8216;init&#8217; if the mobile edition plugin claims its a mobile page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-670938</link>
		<dc:creator>Donncha</dc:creator>
		<pubDate>Tue, 15 Dec 2009 09:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-670938</guid>
		<description>It&#039;s ok, I define that function in wp-cache.php if it doesn&#039;t exist.</description>
		<content:encoded><![CDATA[<p>It&#8217;s ok, I define that function in wp-cache.php if it doesn&#8217;t exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-670931</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Tue, 15 Dec 2009 00:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-670931</guid>
		<description>Donncha, why are you using &lt;code&gt;apache_request_headers()&lt;/code&gt; function instead of &lt;code&gt;$_SERVER[&#039;HTTP_USER_AGENT&#039;]&lt;/code&gt; in &lt;code&gt;wp_cache_user_agent_is_rejected()&lt;/code&gt;? &lt;code&gt;apache_request_headers()&lt;/code&gt; is not available for all SAPIs.</description>
		<content:encoded><![CDATA[<p>Donncha, why are you using <code>apache_request_headers()</code> function instead of <code>$_SERVER['HTTP_USER_AGENT']</code> in <code>wp_cache_user_agent_is_rejected()</code>? <code>apache_request_headers()</code> is not available for all SAPIs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-670928</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-670928</guid>
		<description>Donncha,

The plugin did not warn me that compression was enabled. I&#039;ve used earlier versions of your plugin and they worked perfectly in the past. Keep up the good work! :-D</description>
		<content:encoded><![CDATA[<p>Donncha,</p>
<p>The plugin did not warn me that compression was enabled. I&#8217;ve used earlier versions of your plugin and they worked perfectly in the past. Keep up the good work! <img src='http://ocaoimh.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-670927</link>
		<dc:creator>Donncha</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-670927</guid>
		<description>Vladimir - I&#039;m sure that setting can be detected from within PHP. The plugin should warn the user if they try to enable compression.</description>
		<content:encoded><![CDATA[<p>Vladimir &#8211; I&#8217;m sure that setting can be detected from within PHP. The plugin should warn the user if they try to enable compression.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://ocaoimh.ie/wp-super-cache-098/comment-page-1/#comment-670926</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495507#comment-670926</guid>
		<description>Thanks, you too! :-)</description>
		<content:encoded><![CDATA[<p>Thanks, you too! <img src='http://ocaoimh.ie/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
