๐Ÿ‘‹ I’m Derrick, and this is my WordPress Blarg.


I’m an Enterprise Engineer for WordPress VIP. I’ve been with Automattic/VIP since 2015, and enjoy it every day!

On this site I mostly post WordPress and web technology related things, with a mix of whatever else is on my mind.


Blarg Posts


  • Blogging Anonymously

    Blogging Anonymously

    by

    An interesting problem I came across recently was how to set up a WordPress blog with an anonymous user.  Now, a simple way would be to create a brand new user with fake information, but that’s too easy. After looking for some prior art, I found the Anonymizer plugin in the WordPress.org plugin repository.  Unfortunately, it’s […]

    Read More โ†’


  • Logging Failed Redirects

    Logging Failed Redirects

    by

    WordPress has a built-in function called wp_safe_redirect().ย  This allows you to create redirects in code, but only to whitelisted domains (via the allowed_redirect_hosts filter). The downside to this is that you have to remember to whitelist the domains.ย  It’s easy to forget if you’re doing a lot of redirects, for instance with the WPCOM Legacy […]

    Read More โ†’


  • Purging All The Caches!

    Purging All The Caches!

    by

    One of the best ways to ensure that a WordPress site–well any site really–stays performant and not broken is by leveraging caching. WordPress by default doesn’t do much caching other than some in-memory caching of objects, and the odd database caching via the Transients API. This site currently has three layers of caching: PHP OPcache […]

    Read More โ†’


  • Quick Tip: Viewing Headers With Curl

    Quick Tip: Viewing Headers With Curl

    by

    Something that I do often at work is to check HTTP headers for random things such as redirects, cache headers, proxies, ssl, etc. A common way this is done is by using the -I (–header) switch: The downside to this is that it uses an HTTP HEAD request, which can sometimes return different headers or […]

    Read More โ†’


  • Disabling WordPress Faux Cron

    Disabling WordPress Faux Cron

    by

    The WordPress WP-Cron system is a decently okay faux cron system, but it has its problems, such as running on frontend requests and not running if no requests are coming through. WP-Cron works by: on every page load, a list of scheduled tasks is checked to see what needs to be run. Any tasks scheduled […]

    Read More โ†’


  • Quick Tip: Force Enable Auto-Updates in WordPress

    Quick Tip: Force Enable Auto-Updates in WordPress

    by

    I know that auto-updates are a bit of a (#wpdrama) touchy subject, but I believe in them. In an mu-plugin I enable all auto-updates like so:

    Read More โ†’

All Blarg Posts