Category: WordPress

  • Better Caching in WordPress

    Better Caching in WordPress

    Caching data in WordPress is essential for performance. Using the Transients API is common but using the WP_Object_Cache functions can offer more flexibility, especially for scenarios like API data changes. Additionally, caching too much data can lead to inefficiencies, so optimizing cache object size can significantly improve performance.

  • Page Generation Graph for WordPress

    Page Generation Graph for WordPress

    Discover how to create a personalized page generation graph for your website’s performance tracking. Compare different page types and delve into performance data through URL and time analysis. Find out how to enhance your site’s speed with the custom widgets and options provided. Check out the GitHub repository for the code.

  • Quick Tip: DreamHost cron and WP-CLI

    Quick Tip: DreamHost cron and WP-CLI

    Ensure your WordPress cron events fire correctly on DreamHost by setting the correct PHP version in your code. Be mindful of PHP compatibility issues between your code and the version running via WP-CLI in DreamHost’s cron system to avoid syntax errors like “unexpected ‘?’.” Use the `WP_CLI_PHP` environment variable to specify the PHP version needed…

  • Blogging Anonymously

    Blogging Anonymously

    Setting up an anonymous user on WordPress can be more challenging than expected. Learn about a plugin for creating a pseudo-anonymous user profile with additional metadata, offering a potential workaround. Be cautious, as this setup is more of a concept than a foolproof method, leaving room for potential user data exposure.

  • Logging Failed Redirects

    Logging Failed Redirects

    A logging plugin can help track failed redirects in WordPress, preventing default redirects to “/wp-admin/” for un-whitelisted domains. The plugin creates a dashboard widget displaying domains and failed redirect counts, offering insight into redirect issues and simplifying troubleshooting.

  • 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.

  • 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.