Quick Tip: Force Enable Auto-Updates in WordPress

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: <?php // Turn on auto-updates for everything if ( ! defined( ‘IS_PRESSABLE’ ) || ! IS_PRESSABLE ) { add_filter( ‘allow_major_auto_core_updates’, ‘__return_true’ ); add_filter( ‘allow_minor_auto_core_updates’, ‘__return_true’ ); } add_filter( ‘auto_update_core’, ‘__return_true’ […]

Query Caching (and a little extra)

By default, WordPress does not cache WP_Query queries.  Doing so can greatly improve performance.  The way I do this is via the Advanced Post Cache plugin: https://github.com/Automattic/advanced-post-cache By running this plugin (hopefully as an mu-plugin) with a persistent object cache, WP_Query calls, along with get_post() calls (only if suppress_filters is false) will be cached. Bonus! Now that we’re caching queries, […]

Securing WordPress Plugins with more Plugins

I’ve written before about disabling plugin deactivation in WordPress, but I’ve finally used that knowledge in practice–on this site. The Problem Let’s say you’re going along your day, developing things, and fixing things, and making the world a better place when all of a sudden you get a call from a client that their website […]

CSS & JS Concatenation in WordPress

At WordPress.com VIP one of the features we have on our platform is automated concatenation of Javascript and CSS files when registered through the core WordPress wp_enqueue__*() functions. We do this using the nginx-http-concat plugin: https://github.com/Automattic/nginx-http-concat This plugin was written to work with nginx, but the server running derrick.blog is Apache.  I’ve worked around this and have nginx-http-concat running fully […]

%d bloggers like this: