Bitten by browser caching

Written in the wee hours in English • Tags: , ,

Aaarrrggghh!

I ended up writing the bottom half of the previous article three times, thanks to not having been careful enough when upgrading WordPress. I had lost my fixes that send out the necessary headers to prevent the admin pages from being cached. I guess others don’t get bit by this because they don’t have ExpiresActive enabled on their web server.

Anyway, I’ve saved the changes in a patch file now, for future reference…

Export WordPress links as XBEL

Written in the wee hours in English • Tags: , ,

I wanted to see if I could have my WordPress links in the Firefox Bookmarks menu. I thought this should be possible, since it knows about RSS. From using reBlog I had learned about FeedCreator, which is a great package for quickly creating feeds. So I enhanced wp-links to support feeds.

However, I was to be disappointed — the links are in Firefox now, but they are all piled up together in a single huge menu. In the WordPress database the links are categorized, as can be seen on my links page. I was hoping Firefox would use the categories to create more subfolders.

I thought about another approach: XBEL. The format is simple enough to follow, so I added XBEL support to FeedCreator 1.7.2. This works perfectly with the Bookmarks Synchronizer plugin for Firefox. I’ve configured it to download a single subdirectory inside Bookmarks, and all my WordPress link categories show up as subdirectories inside it.

I’ve made some sample code available to show how I’m calling wp-links. The code won’t run as-is, as it calls some other libraries I’m using. It should be simple enough, though, to remove (or ignore) the “extra” stuff.