<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Holy Shmoly! &#187; WordPress</title>
	<atom:link href="http://ocaoimh.ie/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://ocaoimh.ie</link>
	<description>Look what I found today!</description>
	<lastBuildDate>Fri, 18 May 2012 17:20:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Fatal error: Allowed memory size of 67108864 bytes exhausted</title>
		<link>http://ocaoimh.ie/2012/05/16/fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/</link>
		<comments>http://ocaoimh.ie/2012/05/16/fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/#comments</comments>
		<pubDate>Wed, 16 May 2012 12:50:09 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[WP_MEMORY_LIMIT]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89497511</guid>
		<description><![CDATA[WordPress uses memory. Plugins and themes use memory. New versions of software may use more memory than before. When that happens and PHP on your server doesn&#8217;t have enough memory then PHP will stop with a fatal error like this: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1203208 bytes) in [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress uses memory. Plugins and themes use memory. New versions of software may use more memory than before. When that happens and PHP on your server doesn&#8217;t have enough memory then PHP will stop with a fatal error like this:</p>
<blockquote><p>Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1203208 bytes) in /home/*****/public_html/wp-admin/includes/class-pclzip.php on line 4215</p></blockquote>
<p>This <a href="https://www.google.ie/search?sourceid=chrome&#038;ie=UTF-8&#038;q=%22Fatal+error%3A+Allowed+memory+size+of+67108864+bytes+exhausted%22">happens</a> quite a bit but it&#8217;s not a bug in WordPress or your new plugin or theme, you simply need to let PHP use more memory on your server. Thankfully WordPress <a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP">makes it easy to do this</a>. You must define a constant, WP_MEMORY_LIMIT in your server&#8217;s wp-config.php like this:</p>
<blockquote><p>define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;128M&#8217;);</p></blockquote>
<p>The error message will give you an idea of how much memory is required. The error message says it tried to allocate 1203208 bytes or just over 1MB of memory. The limit here is 67108864 bytes, or 65536KB which is 64MB so here I&#8217;d need a WP_MEMORY_LIMIT of more than 66M. The error message will go away once PHP has enough memory but be sure to test it. </p>
<p>If you allocate too much memory your server could start eating into disk swap space. Also be aware that each Apache child process is allowed to use that much memory so if you had ten processes it could use ten times the memory limit in a worst case scenario. If that happens you&#8217;ll need more RAM or you&#8217;ll have to figure out what&#8217;s using so much memory.</p>
<p>There&#8217;s also a WP_MAX_MEMORY_LIMIT constant. By default it&#8217;s 256M and it&#8217;s currently only used when uploading images.</p>
<p>On the off chance that you don&#8217;t have WordPress installed and you came here from a search engine, then you&#8217;ll want to use ini_set() somewhere early in the PHP process to increase the memory limit:</p>
<blockquote><p>ini_set(&#8216;memory_limit&#8217;, &#8217;128M&#8217;);</p></blockquote>
<p>Finally, I love that the <a href="http://codex.wordpress.org/Editing_wp-config.php">wp-config.php codex page</a> is the first result of a search for <a href="https://www.google.ie/search?aq=f&#038;sourceid=chrome&#038;ie=UTF-8&#038;q=WP_MEMORY_LIMIT">WP_MEMORY_LIMIT</a>.</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89497511" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2003/09/16/memory-stick-weirdness/" rel="bookmark" title="Permanent Link: Memory stick weirdness">Memory stick weirdness</a></li><li> <a href="http://ocaoimh.ie/2002/08/08/there-is-a-memory-le/" rel="bookmark" title="Permanent Link: There is a memory leak in PHP. &#8230;">There is a memory leak in PHP. &#8230;</a></li><li> <a href="http://ocaoimh.ie/2002/08/07/update-on-the-status/" rel="bookmark" title="Permanent Link: Update on the status of php ac &#8230;">Update on the status of php ac &#8230;</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/05/16/fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Super Cache for the Weekend</title>
		<link>http://ocaoimh.ie/2012/05/11/super-cache-for-the-weekend/</link>
		<comments>http://ocaoimh.ie/2012/05/11/super-cache-for-the-weekend/#comments</comments>
		<pubDate>Fri, 11 May 2012 15:23:07 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89497475</guid>
		<description><![CDATA[WP Super Cache 1.0 came out several months ago and while it worked fine for most people there&#8217;s always room for improvement and bug fixes. Here are some of the bug fixes and improvements coming in the next version which I plan on releasing next week. There are a lot of changes there so if [...]]]></description>
			<content:encoded><![CDATA[<p>WP Super Cache 1.0 came out several months ago and while it worked fine for most people there&#8217;s always room for improvement and bug fixes. Here are some of the bug fixes and improvements coming in the next version which I plan on releasing next week. </p>
<p>There are a lot of changes there so if you have a self hosted blog I would really appreciate if you download the development version, <a href="http://downloads.wordpress.org/plugin/wp-super-cache.zip">wp-super-cache.zip</a> and install it in your plugins folder.</p>
<ul>
<li> Use $_SERVER[ 'SERVER_NAME' ] to create cache directories.</li>
<li> Only create blogs cached directories if valid requests and blogs exist.</li>
<li> Only clear current blog&#8217;s cache files if navigation menu is modified</li>
<li> Added clean_post_cache action to clear cache on post actions</li>
<li> Removed garbage collection details on Contents tab</li>
<li> Added wp_cache_check_mobile cacheaction filter to shortcircuit mobile device check.</li>
<li> Don&#8217;t delete cache files for draft posts</li>
<li> Added action on wp_trash_post to clear the cache when trashed posts are deleted</li>
<li> Show a warning when 304 browser caching is disabled (because mod_rewrite caching is on)</li>
<li> New check for safe mode if using less that PHP 5.3.0</li>
<li> Added wp_supercache_remove_cookies filter to disable anonymous browsing mode.</li>
<li> Fixed garbage collection schedule dropdown</li>
<li> Fixed preload problem clearing site&#8217;s cache on &#8220;page on front&#8221; sites.</li>
<li> Fix for PHP variable not defined warnings</li>
<li> Fixed problem refreshing cache when comments made as siteurl() sometimes didn&#8217;t work</li>
<li> Preloading of taxonomies is now optional</li>
<li> Domain mapping fixes.</li>
<li> Better support for https sites. Remove https:// to get cache paths.</li>
<li> Added AddDefaultCharset .htaccess rule back in and added an option to remove it if required.</li>
<li> Added multisite plugin that adds a &#8220;Cached&#8221; column to Network->Sites to disable caching on a per site basis.</li>
<li> Added WPTouch plugin to modify browser and prefix list in mobile detection code. Added support for that plugin&#8217;s exclude list.</li>
<li> Fixed cache tester</li>
<li> Filter the tags that are used to detect end-of-page using the wp_cache_eof_tags filter.</li>
</ul>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89497475" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2008/10/24/wp-super-cache-084-the-garbage-collector/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.4, the garbage collector">WP Super Cache 0.8.4, the garbage collector</a></li><li> <a href="http://ocaoimh.ie/2009/01/09/wp-super-cache-087/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.7">WP Super Cache 0.8.7</a></li><li> <a href="http://ocaoimh.ie/2010/02/08/wp-super-cache-099/" rel="bookmark" title="Permanent Link: WP Super Cache 0.9.9">WP Super Cache 0.9.9</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/05/11/super-cache-for-the-weekend/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Wikipedia Irish Style</title>
		<link>http://ocaoimh.ie/2012/04/24/wikipedia-irish-style/</link>
		<comments>http://ocaoimh.ie/2012/04/24/wikipedia-irish-style/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 17:21:53 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89497419</guid>
		<description><![CDATA[WordPress on Mickopedia via r/Ireland. Related Posts Irish language &#8211; Wikipedia Back to the Eighties Vicipéid &#8211; Wikipedia as Gaeilge!]]></description>
			<content:encoded><![CDATA[<p><img src="http://ocaoimh.ie/ocaoimh/2012/04/wordpress.png" alt="" title="WordPress" width="459" height="425" class="aligncenter size-full wp-image-89497420" /></p>
<p><a href="http://mickopedia.org/mickify.py?topic=wordpress">WordPress</a> on <a href="http://mickopedia.org/">Mickopedia</a> via <a href="http://www.reddit.com/r/ireland/comments/sprgv/wikipedia_with_that_irish_flare/">r/Ireland</a>.</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89497419" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2003/09/01/irish-language-wikipedia/" rel="bookmark" title="Permanent Link: Irish language &#8211; Wikipedia">Irish language &#8211; Wikipedia</a></li><li> <a href="http://ocaoimh.ie/2008/07/04/back-to-the-eighties/" rel="bookmark" title="Permanent Link: Back to the Eighties">Back to the Eighties</a></li><li> <a href="http://ocaoimh.ie/2004/08/25/vicipid-wikipedia-as-gaeilge/" rel="bookmark" title="Permanent Link: Vicipéid &#8211; Wikipedia as Gaeilge!">Vicipéid &#8211; Wikipedia as Gaeilge!</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/04/24/wikipedia-irish-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AutOptimize Me!</title>
		<link>http://ocaoimh.ie/2012/03/05/autooptimize-me/</link>
		<comments>http://ocaoimh.ie/2012/03/05/autooptimize-me/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 09:33:28 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89497186</guid>
		<description><![CDATA[Testing out AutOptimize here. It minifies html and css and then Super Cache caches the optimized code. Hopefully won&#8217;t be any rendering surprises. Oh, hi from Iceland! Related Posts No related posts]]></description>
			<content:encoded><![CDATA[<p>Testing out <a href="http://wordpress.org/extend/plugins/autoptimize/">AutOptimize</a> here. It minifies html and css and then Super Cache caches the optimized code. Hopefully won&#8217;t be any rendering surprises.</p>
<p>Oh, hi from Iceland!<br />
<img title="CameraZOOM-20120305095334550.jpg" class="alignnone" alt="image" src="http://ocaoimh.ie/ocaoimh/2012/03/wpid-CameraZOOM-20120305095334550.jpg" /></p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89497186" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> No related posts</li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/03/05/autooptimize-me/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>And my first WordPress.org post was &#8230;</title>
		<link>http://ocaoimh.ie/2012/02/13/and-my-first-wordpress-org-post-was/</link>
		<comments>http://ocaoimh.ie/2012/02/13/and-my-first-wordpress-org-post-was/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 12:46:12 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[b2]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[Smarty]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496958</guid>
		<description><![CDATA[My post on this forum thread was my first one on WordPress.org apparently. It was 8 years ago and WordPress didn&#8217;t have a plugin system and wouldn&#8217;t have until later. I had integrated Smarty into the b2++ project, with a nifty versioned template editor and even looked at doing the same with WordPress. Smarty had [...]]]></description>
			<content:encoded><![CDATA[<p>My post on <a href="http://wordpress.org/support/topic/will-you-implement-plugin-system?replies=4">this forum thread</a> was my first one on WordPress.org apparently.</p>
<p>It was 8 years ago and WordPress didn&#8217;t have a plugin system and wouldn&#8217;t have until <a href="http://wordpress.org/news/2004/05/heres-the-beef/">later</a>. I had integrated <a href="http://www.smarty.net/">Smarty</a> into the b2++ project, with a nifty versioned template editor and even <ah ref="http://ocaoimh.ie/2003/09/16/wordpress-and-smarty/">looked at doing the same with WordPress</a>. Smarty had a plugin system that could be used in theory but nothing came of it.</p>
<p>What was your first post on the WordPress.org forum? Look in your profile to find out!</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496958" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2005/10/11/first-post/" rel="bookmark" title="Permanent Link: First Post!">First Post!</a></li><li> <a href="http://ocaoimh.ie/2009/12/08/sitewide-tags-04-wordpress-mu/" rel="bookmark" title="Permanent Link: Sitewide Tags 0.4 for WordPress MU">Sitewide Tags 0.4 for WordPress MU</a></li><li> <a href="http://ocaoimh.ie/2005/11/22/me-and-wordpresscom/" rel="bookmark" title="Permanent Link: Me and WordPress.com">Me and WordPress.com</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/02/13/and-my-first-wordpress-org-post-was/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A cache directory is a temporary directory</title>
		<link>http://ocaoimh.ie/2012/01/18/a-cache-directory-is-a-temporary-directory/</link>
		<comments>http://ocaoimh.ie/2012/01/18/a-cache-directory-is-a-temporary-directory/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 11:07:12 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[codex]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496794</guid>
		<description><![CDATA[WOAH! Do not put symlinks to your uploaded files in a temporary cache directory. Nginx users running WordPress should beware if they followed these instructions and put a symlink to uploaded files in the wp-content/cache/ directory. I&#8217;m going to rewrite that page right now suggesting they use a different directory, possibly wp-content/uploads/ or maybe wp-content/files/. [...]]]></description>
			<content:encoded><![CDATA[<p>WOAH! Do not put symlinks to your uploaded files in a temporary <em>cache</em> directory. Nginx users running WordPress should beware if they followed <a href="http://codex.wordpress.org/Nginx">these instructions</a> and put a symlink to uploaded files in the wp-content/cache/ directory. I&#8217;m going to rewrite that page right now suggesting they use a different directory, possibly wp-content/uploads/ or maybe wp-content/files/.</p>
<p>WP Super Cache (and I presume other caching plugins) <a href="http://wordpress.org/support/topic/plugin-wp-super-cache-major-bug-network-deactivating-deletes-files?replies=6">will delete everything</a> in the cache directory. It&#8217;s like putting important files in /tmp/ where files are <a href="http://askubuntu.com/questions/20783/how-is-the-tmp-directory-cleaned-up">routinely cleaned out</a> on reboot.</p>
<p>My replies on the thread above might paint me as a cold heartless bastard but I am sorry those websites suffered data loss. However I&#8217;m shocked that they put links to uploaded images in a folder containing temporary files!</p>
<p><stron>Edit</strong> (20 minutes later): the <a href="http://codex.wordpress.org/Nginx">codex page</a> has been updated, thanks Westi for your help. It now recommends using wp-content/ms-filemap/ rather than wp-content/cache/</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496794" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2006/10/26/brians-latest-comments-cached/" rel="bookmark" title="Permanent Link: Brians Latest Comments Cached">Brians Latest Comments Cached</a></li><li> <a href="http://ocaoimh.ie/2005/05/25/irish-blogs-directory-the-new-boggersphere/" rel="bookmark" title="Permanent Link: Irish Blogs Directory, the new boggersphere!">Irish Blogs Directory, the new boggersphere!</a></li><li> <a href="http://ocaoimh.ie/2003/02/14/cork-lug-fish-ftp/" rel="bookmark" title="Permanent Link: Cork LUG &#8211; Fish, ftp over ssh  &#8230;">Cork LUG &#8211; Fish, ftp over ssh  &#8230;</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/01/18/a-cache-directory-is-a-temporary-directory/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WP-Super-Cache: bug fixing and PHP object destruction</title>
		<link>http://ocaoimh.ie/2012/01/04/wp-super-cache-bug-fixing-and-php-object-destruction/</link>
		<comments>http://ocaoimh.ie/2012/01/04/wp-super-cache-bug-fixing-and-php-object-destruction/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 22:39:11 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496661</guid>
		<description><![CDATA[If you use the WPTouch mobile plugin, or the preload function in my caching plugin, or noticed that annoying but random and (thankfully) rare &#8220;front page isn&#8217;t showing my front page&#8221; bug then you might like to try the development version of WP-Super-Cache located on this page. Mobile plugins need to tell WP Super Cache [...]]]></description>
			<content:encoded><![CDATA[<p>If you use the WPTouch mobile plugin, or the preload function in my caching plugin, or noticed that annoying but random and (thankfully) rare &#8220;front page isn&#8217;t showing my front page&#8221; bug then you might like to try the development version of WP-Super-Cache located on <a href="http://wordpress.org/extend/plugins/wp-super-cache/download/">this page</a>.</p>
<p>Mobile plugins need to tell WP Super Cache what user agents they support. <a href="http://ocaoimh.ie/wp-super-cache-developers/">I documented the filters you can use</a> (&#8220;cached_mobile_browsers&#8221; and others) to do this but I don&#8217;t think they&#8217;ve been used by any plugin. It&#8217;s not hard to do and <a href="http://plugins.trac.wordpress.org/changeset/483977">I added code</a> that checks for WPTouch so when you visit the WP Super Cache settings page it updates the mobile user agents. So far it works for me but please feel free to view this site on your mobile phone and tell me if it looks ok! I also added support for the theme switcher in WPTouch based on <a href="http://wordpress.org/support/topic/wptouch-breaks-after-upgrading-wp-super-cache-to-10?replies=6#post-2530861">code posted</a> on the wporg forum.</p>
<p>It appears that the &#8220;random post on the front page&#8221; problem is a side effect of how PHP works. WordPress incorrectly reported that <a href="http://wordpress.org/support/topic/plugin-wp-super-cache-my-page-2-is-randomly-redirecting-to-other-posts?replies=15">the current page wasn&#8217;t a search page</a>, even though it was. I put an extra bit of code in checking if $_GET is non empty and that fixed it, so far.</p>
<p>Just in case anyone else is interested, this is why is_search() fails randomly when run during PHP shutdown. When a PHP process shuts down it starts by killing off objects. Unfortunately this happens before PHP stops executing your code, something that changed after PHP4. </p>
<p>Anything that runs when the output buffer finishes or that is registered by register_shutdown_function() better not depend on objects or classes. That means no using $wpdb, the object cache may disappear or to be completely paranoid don&#8217;t expect $wp_query to be around either! The functions is_search(), is_feed() and other related WordPress functions depend on $wp_query so you should cache the values of those functions earlier in the process. I&#8217;m thinking of hooking into wp_head but that depends on the theme unfortunately. Not every theme uses that action.</p>
<p>Many years ago <a href="http://plugins.trac.wordpress.org/changeset/101924">I changed the format</a> of the cache &#8220;meta file&#8221; from an object to an array because of the way the PHP desctruction process works. More recently, but still two years ago I had to <a href="http://wordpress.org/support/topic/plugin-wp-super-cache-call-to-a-member-function-get-on-a-non-object-in-cachephp?replies=24">remove all calls</a> to get_option() and update_option() in the output buffer handler because occasionally people saw the error, &#8220;Call to a member function get() on a non-object in cache.php&#8221; in their error log. The object cache object had been destroyed by PHP! That was a right pain to figure out as the code looked perfect yet didn&#8217;t work right some of the time.</p>
<p>To help figure out problems I&#8217;ve added a lot more debugging to the plugin too. If $wp_query disappears it&#8217;ll appear in your debug log, and preloading will generate a lot more messages now.</p>
<p>Next up is caching is_search(), is_feed(), is_single() etc. Where should those be cached? The &#8220;init&#8221; action is too early for is_search and probably others but I don&#8217;t want to depend on actions that may not be in a theme.</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496661" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2010/02/08/wp-super-cache-099/" rel="bookmark" title="Permanent Link: WP Super Cache 0.9.9">WP Super Cache 0.9.9</a></li><li> <a href="http://ocaoimh.ie/2009/05/26/looking-at-a-wpmu-object-cache/" rel="bookmark" title="Permanent Link: Looking at a WPMU Object Cache">Looking at a WPMU Object Cache</a></li><li> <a href="http://ocaoimh.ie/2008/10/24/wp-super-cache-084-the-garbage-collector/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.4, the garbage collector">WP Super Cache 0.8.4, the garbage collector</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2012/01/04/wp-super-cache-bug-fixing-and-php-object-destruction/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WP Super Cache 1.0</title>
		<link>http://ocaoimh.ie/2011/12/05/wp-super-cache-1-0/</link>
		<comments>http://ocaoimh.ie/2011/12/05/wp-super-cache-1-0/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 18:10:09 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496606</guid>
		<description><![CDATA[WP Super Cache is a fast page caching plugin for WordPress that can significantly speed up websites. The first release of this plugin was in September 2009 so this has been a bit too long in the making. Back then the main caching plugin was WP Cache, which this plugin is based on, but now [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> is a fast page caching plugin for WordPress that can significantly speed up websites.</p>
<p>The first release of this plugin was in September 2009 so this has been a bit too long in the making. Back then the main caching plugin was WP Cache, which this plugin is based on, but now there are quite a few including W3 Total Cache, Hypercache, Quick Cache and <a href="http://wordpress.org/extend/plugins/search.php?q=caching">many more</a>.</p>
<p>Version 1.0 is an incremental upgrade from the previous release but it has a number of bugfixes and new features:</p>
<ol>
<li> The all new <a href="http://ocaoimh.ie/2011/11/29/wp-super-cache-scheduler-and-admin-bar-link/">scheduler and admin bar link</a> should please many people, especially those who want to clear the cache on their site at particular times. The &#8220;Delete Cache&#8221; admin bar link is something people have been asking about for as long as WordPress has had that bar!</li>
<li> You can preload <a href="http://ocaoimh.ie/2011/10/19/preload-categories-and-custom-post-content/">categories and taxonomies</a> although this hasn&#8217;t really been tested as well as I&#8217;d like. It works for me but YMMV.</li>
<li> There&#8217;s <a href="http://ocaoimh.ie/2011/07/11/get-a-sneak-preview-of-wp-super-cache-before-1-0/">better support for mobile and https users</a> now. Mobile support should scale a lot more than previously.</li>
<li> The cache tester is fixed now and the plugin traps as many errors as possible. It&#8217;ll also spit out some helpful text if there is a problem. 99% of the time it&#8217;s because the server can&#8217;t request a page from itself.</li>
<li> At the risk of annoying users who comment on your site you can make them appear to be anonymous users which will drastically help your server if they like commenting a lot. Unfortunately it stops the comment form populating with their details so it might be worth using an external comment system like Intense Debate or Disqus!</li>
<li> The Advanced Settings page now lists a &#8220;do not cache page&#8221; secret key. Use this key to view any page of your site uncached.</li>
<li> The cache file listing and delete links should work again now.</li>
<li> And many many more bug fixes.</li>
</ol>
<p>Once you upgrade go visit the settings page and check out what&#8217;s new there. The upgrade worked fine for me, but there&#8217;s no harm looking. Pay close attention to the new garbage collector. The scheduler is rather powerful and flexible so it&#8217;s worth setting up right.</p>
<p>If you have any problems please leave a comment here or use <a href="http://wordpress.org/tags/wp-super-cache?forum_id=10">the support forum</a>.</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496606" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2008/10/24/wp-super-cache-084-the-garbage-collector/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.4, the garbage collector">WP Super Cache 0.8.4, the garbage collector</a></li><li> <a href="http://ocaoimh.ie/2009/01/09/wp-super-cache-087/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.7">WP Super Cache 0.8.7</a></li><li> <a href="http://ocaoimh.ie/2010/02/08/wp-super-cache-099/" rel="bookmark" title="Permanent Link: WP Super Cache 0.9.9">WP Super Cache 0.9.9</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2011/12/05/wp-super-cache-1-0/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>WP Super Cache Scheduler and Admin Bar Link</title>
		<link>http://ocaoimh.ie/2011/11/29/wp-super-cache-scheduler-and-admin-bar-link/</link>
		<comments>http://ocaoimh.ie/2011/11/29/wp-super-cache-scheduler-and-admin-bar-link/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 13:56:39 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496593</guid>
		<description><![CDATA[I made a few changes to WP Super Cache over the last week. The garbage collection user interface received an overhaul and it&#8217;s now possible to schedule the those jobs using a timer or a clock. It can also send you an email each time it runs! Another major change was the addition of a [...]]]></description>
			<content:encoded><![CDATA[<p>I made a few changes to <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> over the last week. The garbage collection user interface received an overhaul and it&#8217;s now possible to schedule the those jobs using a timer or a clock. It can also send you an email each time it runs!</p>
<p><img src="http://ocaoimh.ie/ocaoimh/2011/11/gc.png" alt="" title="gc" width="615" height="467" class="aligncenter size-full wp-image-89496596" /></p>
<p><img src="http://ocaoimh.ie/ocaoimh/2011/11/gc-email.png" alt="" title="gc-email" width="444" height="131" class="aligncenter size-full wp-image-89496595" /></p>
<p>Another major change was the addition of a &#8220;Delete Cache&#8221; link on the admin bar for logged in users. This may seem strange, but it will only show if you have disabled caching for known users. Unfortunately this is needed because of the security measures required. It only deletes the supercache file(s) for the current page, not any legacy files associated with it.</p>
<p><img src="http://ocaoimh.ie/ocaoimh/2011/11/delete-cache.png" alt="" title="delete-cache" width="358" height="94" class="aligncenter size-full wp-image-89496594" /></p>
<p>If you&#8217;re feeling adventurous go download the development version from <a href="http://wordpress.org/extend/plugins/wp-super-cache/download/">this page</a> and give it a whirl. I really need feedback that this works well so please leave a comment if you try it.</p>
<p>The version number won&#8217;t change and when the next release comes out you&#8217;ll still get the upgrade notification!</p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496593" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2011/12/05/wp-super-cache-1-0/" rel="bookmark" title="Permanent Link: WP Super Cache 1.0">WP Super Cache 1.0</a></li><li> <a href="http://ocaoimh.ie/2010/08/24/wip-super-cache-admin-page/" rel="bookmark" title="Permanent Link: WIP: the Super Cache admin page">WIP: the Super Cache admin page</a></li><li> <a href="http://ocaoimh.ie/2008/10/24/wp-super-cache-084-the-garbage-collector/" rel="bookmark" title="Permanent Link: WP Super Cache 0.8.4, the garbage collector">WP Super Cache 0.8.4, the garbage collector</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2011/11/29/wp-super-cache-scheduler-and-admin-bar-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bye Bye Digg, Hello Stephen Fry!</title>
		<link>http://ocaoimh.ie/2011/11/21/bye-bye-digg-hello-stephen-fry/</link>
		<comments>http://ocaoimh.ie/2011/11/21/bye-bye-digg-hello-stephen-fry/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:55:14 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Stephen Fry]]></category>
		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89496579</guid>
		<description><![CDATA[Last week The Hibbs Lupus Trust posted a tweet thanking various people after their site was mentioned in a tweet by Stephen Fry. Lupus is a horrible condition and the Trust aims to help raise awareness of it, support sufferers and help GPs diagnose it. Lupus causes the body’s immune system to go into overdrive [...]]]></description>
			<content:encoded><![CDATA[<p>Last week <a href="http://www.hibbslupustrust.org/">The Hibbs Lupus Trust</a> posted a <a href="https://twitter.com/#!/HibbsLupusTrust/statuses/136429993059291136">tweet</a> thanking various people after their site was mentioned <a href="https://twitter.com/#!/stephenfry/statuses/136391415151333376">in a tweet</a> by Stephen Fry. Lupus <a href="http://www.hibbslupustrust.org/lupus/">is a horrible condition</a> and the Trust aims to help raise awareness of it, support sufferers and help GPs diagnose it.</p>
<blockquote><p>Lupus causes the body’s immune system to go into overdrive and starts to attack itself. It is believed that over 50,000 people throughout the UK suffer with Lupus of whom 90% are female. The symptoms are many and varied, and the condition often seems to mimic other diseases. This gives rise to difficulty in diagnosis and the condition can be overlooked for years, unless the GP or consultant is alert to the possibility of lupus.</p></blockquote>
<p>The Trust&#8217;s website must have experienced a torrent of traffic because Mr Fry is followed by gazillions of people and the tweet was retweeted by over 100 of his followers. The website stayed up and I&#8217;m glad that <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> played a part in helping them.</p>
<p>I wanted to mark the occasion of a website getting a Frying and surviving so I changed the &#8220;Digg proof&#8221; message in the plugin to &#8220;Stephen Fry Proof&#8221;. Download the development version from <a href="http://wordpress.org/extend/plugins/wp-super-cache/download/">this page</a> if you want a look. The link in the admin page goes to the Trust&#8217;s tweet so I hope I can play a small part in spreading the word.</p>
<p><img src="http://ocaoimh.ie/ocaoimh/2011/11/stephenfry.png" alt="" title="Stephen Fry Proof" width="547" height="120" class="aligncenter size-full wp-image-89496580" /></p>
<p>Of course, just because you&#8217;re using this plugin is no guarantee that your site will survive a mention by Mr Fry or any other celebrity on Twitter (especially if your hosting is simply too limited) but With WP Super Cache at least it has a fighting chance!</p>
<p>BONUS: In case you didn&#8217;t see it, here&#8217;s Stephen Fry ag caint as Gaeilge (talking in Irish) <a href="http://ocaoimh.ie/2011/03/03/stephen-fry-ros-na-rn/">as he appeared on</a> an Irish language tv programme a while back:</p>
<p><span style="text-align:center; display: block;"><a href="http://ocaoimh.ie/2011/11/21/bye-bye-digg-hello-stephen-fry/"><img src="http://img.youtube.com/vi/7_VNWru5y6U/2.jpg" alt="" /></a></span></p>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89496579" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2011/03/03/stephen-fry-ros-na-rn/" rel="bookmark" title="Permanent Link: Stephen Fry on Ros na Rún">Stephen Fry on Ros na Rún</a></li><li> <a href="http://ocaoimh.ie/2002/06/27/according-to-stephen/" rel="bookmark" title="Permanent Link: According to Stephen&#039;s referer &#8230;">According to Stephen&#039;s referer &#8230;</a></li><li> <a href="http://ocaoimh.ie/2007/11/07/how-well-did-super-cache-handle-the-digg/" rel="bookmark" title="Permanent Link: How well did Super Cache handle the digg?">How well did Super Cache handle the digg?</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2011/11/21/bye-bye-digg-hello-stephen-fry/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.497 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-21 23:15:11 -->
<!-- Compression = gzip -->
