WP Super Cache 1.4.9

There’s a new release of WP Super Cache out and it’s a security release to fix XSS problems in the settings pages. Those pages are only accessible by admin users so an anonymous visitor to your site can’t come along and enable it to steal your login cookies but along with those fixes come many bug fixes so it’s worth upgrading if you’re using an old version.

From the Changelog:

  • Fixed bug when not running sem_remove after sem_release. See https://github.com/Automattic/wp-super-cache/issues/85
  • Fixed a PHP error impacting PHP 7.1.
  • Fixed a bug where we cached PUT and DELETE requests. We’re treating them like POST requests now.
  • Delete supercache cache files, even when supercache is disabled, because mod_rewrite rules might still be active.
  • Updated the settings page, moving things around. #173
  • Make file locking less attractive on the settings page and fixed the WPSC_DISABLE_LOCKING constant so it really disables file locking even if the user has enabled it already.
  • Added a WPSC_REMOVE_SEMAPHORE constant that must be defined if sem_remove() is to be used as it may cause problems. #174
  • Added a “wpsc_delete_related_pages_on_edit” filter that on returning 0 will disable deletion of pages outside of page being edited. #175
  • Fixed plugin deleting all cached pages when a site had a static homepage. #175
  • Make sure $cache_path has a trailing slash #177
  • Remove flush() #127 but also check if headers are empty and flush and get headers again. #179
  • Add fix for customizer #161 and don’t cache PUT AND DELETE requests #178
  • Check for superglobals before using them. #131

You can click through to each of the Github pull requests above to see discussion around each bug fix.

If you’re hosting many sites that use WP Super Cache and you’re seeing issues with semaphores it may mean that your users are using file locking. It’s really not needed and in #174 there’s a fix that went into this release. You can disable file locking completely by setting the constant “WPSC_DISABLE_LOCKING” in a global configuration file. The file locking simply slowed down how fast cache files were created and is a hold-over from WP Cache when that plugin used to write directly to the cache files. This plugin writes to temporary files before moving to the final cache files so that locking isn’t really needed, but some sites still use it which is why it’s still around.

I’ve already been working on the next release with efforts to move the legacy cache files into the supercache directories. This will make it easier to maintain them and improve performance. We really need to find a better name for this caching method however. It caches everything – page contents and http headers so it’s quite useful!
If you’re going to test that PR, try #176 too. The plugin only deletes index.html type files right now but this chunk of code cleans up various for loops in the plugin and also deletes any file in the named directory. There are some restrictions on it so it won’t delete anything outside the cache directory.

Thanks to everyone who contributed to this release!

The Galaxy S7 finally gets Nougat

Nougat, or Android 7.0 has finally been released by Samsung for the Galaxy S7/ and S7 Edge and my phone is downloading it.

Now that it’s here I was wondering if I should install it as I’m quite fond of “Good Lock”, a replacement for the notification system in Samsung phones that doesn’t yet work in Nougat, but this comparison video (of the first beta) below convinced me to try it.

The notification panel looks ok, but has been updated since that video was made. The brightness slider can be moved to the top of the notification panel so it shows on the first pull-down now. That brightness warning dialog only showed the first time I set it to that bright. It’s definitely an improvement on the panel in stock Marshmallow on the S7. I like the multitasking, and the camera has got a nice UI update, even though I rarely use anything but the “pro” mode to shoot raw files. I hope Android Pay still works. I guess that’s one good thing about credit cards – you don’t have to worry about an OS update breaking it!

I wonder if I can enable the blue light filter only at night. That would be more useful than the screen turning yellow during the day. Nightmode Enabler doesn’t work.

Finally, here’s a video showing the final Nougat update..

Frank Kelly’s 12 Days of Christmas

Is it too late for Frank Kelly’s parody of 12 Days of Christmas?

Frank was probably best known as Father Jack on the show Fr. Ted, but I came across him first on an old vinyl record of his stories. He also produced many comedy sketches such as this one:

And he features in this clip of Yu Ming is Ainm Dom:

Watch the full short movie here:

A great talent who died earlier this year.

3 months free Backblaze again

A long time ago in 2013 Backblaze had a “sign up and get an extra three months free” offer and they’re back at it again.

For the next 32 days. click on this Backblaze signup link, you’ll get started on a free trial for a month to test it out, but if you decide to pay you’ll get an extra three months.

I love the Backblaze service. It’s a cloud backup service where you can backup your files. I won’t go on and on about it. I did that in my 2013 post, but if it’s any indication of how good they are, I’m still a customer all these years later with over 2TB of data backed up there now.

The signup link is an affiliate link of course (I get three months free as well if someone signs up) but if you don’t want to use it and don’t want that extra three months sign up through this link instead.

And to think, I used to rely on backing up my photos to CD..