Caching oembed with nginx
When we post a blog link on Mastodon, caching pages might not be enough, thanks to oembed requests — so cache those too with nginx fastcgi cache.
Yet another programmer blogging about code
When we post a blog link on Mastodon, caching pages might not be enough, thanks to oembed requests — so cache those too with nginx fastcgi cache.
Purge the whole nginx fastcgi cache from WordPress when nginx and PHP run as different users.
Hiding a page or section of a form in Gravity Forms, without having to remove it from the form.
WordPress has a handy function called has_block() that tests whether your page or post uses a particular block type.
If WooCommerce is restricting which countries it sells to, then Gravity Forms should probably restrict its addresses to match.
The WordPress block editor comes with a simple video block that doesn't support MP4 and WebM for one video. But the old video shortcode can.
SVG images can support light and dark mode in CSS. But Safari browser has a problem.
Automatically turn on the debug log when running unit tests for WordPress plugins.
Run your WordPress plugin tests on PHP 8.0 and later. With thanks to Juliette Reinders Folmer and Yoast!
When building custom blocks for the WordPress editor, sometimes we want to make them only available on specific post types.
Send UpdraftPlus backups to different S3 folders, so that separate lifecycle policies can be applied to them.
The WordPress block editor supports a link picker that we can add to our custom blocks. The best bit is we can restrict its searches to a post type of our choosing.