Category: WordPress
-
Purging All The Caches!
in WordPressLearn 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.
-
Disabling WordPress Faux Cron
in WordPressLearn 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
in WordPressEnable 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)
in WordPressWordPress 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.
-
Gutenberg, Code, and Highlighting
in WordPressGutenberg 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
in WordPressLearn 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.
-
CSS & JS Concatenation in WordPress
in WordPressAutomated concatenation of Javascript and CSS files in WordPress can be enhanced using the `nginx-http-concat` plugin. Even though it was designed for nginx, it can be adapted to work with Apache servers. By utilizing specific code in `wp-config.php` and `mu-plugin`, improved caching and speed can be achieved. Consider turning this setup into a dedicated plugin…