Month: June 2018

  • Purging All The Caches!

    Purging All The Caches!

    Learn how to efficiently manage WordPress caching with PHP OPcache, WordPress Object Cache, and full page caching using custom code for an Admin Dashboard widget. Simplify cache purging across three different plugins with this code snippet.

  • Quick Tip: Viewing Headers With Curl

    Quick Tip: Viewing Headers With Curl

    Learn how to inspect HTTP headers for redirects, cache details, SSL, etc., using `curl` with `-I` switch. Discover how to resolve potential inconsistencies between `HEAD` and `GET` requests by using `-X` switch to override the default method in `curl` commands. Simplify with a combined command: `curl -IXGET http://example.com/`.

  • Disabling WordPress Faux Cron

    Disabling WordPress Faux Cron

    Learn about the WordPress WP-Cron system, its flaws, and how to fix them. Disable the default cron behavior and switch to a system cron for better performance. Improve site speed by managing cron events efficiently to avoid slowdowns on frontend requests. Let a system cron handle periodic tasks effectively for optimal site maintenance.

  • Quick Tip: Force Enable Auto-Updates in WordPress

    Quick Tip: Force Enable Auto-Updates in WordPress

    Enable auto-updates for WordPress core, plugins, themes, and translations using an mu-plugin with PHP code. Embrace auto-updates for smoother maintenance.

  • Query Caching (and a little extra)

    Query Caching (and a little extra)

    WordPress does not cache queries by default, but using the Advanced Post Cache plugin can improve performance. By caching `WP_Query` calls with a persistent object cache, performance can be enhanced even further with additional caching techniques for different queries and responses.

  • Auto-enable WP_DEBUG with a cookie

    Auto-enable WP_DEBUG with a cookie

    A guide on enabling WP_DEBUG in WordPress for theme/plugin development or debugging. Learn how to set it in wp-config.php or use a secret cookie method. Enhance it with additional settings like WP_DEBUG_LOG and SCRIPT_DEBUG. Implement the cookie setup using a custom mu-plugin for improved development efficiency.

  • Windows, SFTP, and the Registry

    Windows, SFTP, and the Registry

    Easily handle dynamically generated SFTP IPs and ports by creating a wrapper script in Windows, allowing you to efficiently manage connections with additional data like private keys and proxy information. Register a handler for SFTP URIs with a Windows Registry file to streamline the process of connecting to SFTP directories.

  • Gutenberg, Code, and Highlighting

    Gutenberg, Code, and Highlighting

    Gutenberg now supports syntax highlighting in code blocks using the code-syntax-block plugin. Say goodbye to plain code rendering and embrace the beauty of highlighted syntax within Gutenberg blocks. Check out how Marcus Kazmierczak took code display to the next level!

  • Securing WordPress Plugins with more Plugins

    Securing WordPress Plugins with more Plugins

    Learn how to secure plugins from accidental deactivation in WordPress by creating a helper function within an mu-plugin. This function ensures that critical plugins cannot be disabled, providing stability to your website. See how to implement this function and prevent the “Deactivate” option from appearing in the WordPress admin interface.