Blog

Ditch the subscription model! Learn how to build your own ultra-fast, modern, and private VPN using a Virtual Private Server (VPS) and the cutting-edge WireGuard protocol. This guide shows you how to set up an on-demand solution perfect for ensuring complete privacy. Get the quick steps for total internet freedom and control!
Stale Cache Syndrome? 🤢 If your high-traffic Drupal site uses Varnish via the Advanced Varnish module, you might notice your cache isn't purging automatically after content is updated or deleted.

Learn how to write simple custom code using Drupal hooks (hook_node_update and hook_node_delete) to force instant cache invalidation (PURGE) requests to Varnish whenever a node is changed. This essential fix ensures your high-speed setup always delivers the freshest content to your users! 🚀
Problem: Your client needs a Views listing for the homepage that excludes any nodes currently being displayed in a menu. Out-of-the-box Views filters can't quite handle this specific logic.

Solution: Learn how to leverage hook_views_query_alter() to dynamically modify your Views query! This advanced Drupal technique allows you to perform a LEFT JOIN on the menu_link_content_data table and add a WHERE clause to filter out nodes that have an associated menu link, giving you precise control over your content listings.
Tired of writing verbose Drupal 8+ code just to load, save, or delete an entity? 😩 Streamline your development with a single, powerful helper function: entityManage().

This custom function acts as a versatile wrapper for all your entity operations (Create, Read, Update, Delete, and List). Load a single entity, update a taxonomy term by name, list all inactive users, or delete an entity by ID or properties—all with one clean line of code. Stop calling $entityTypeManager, $storage, loadByProperties, and save() repeatedly!
Getting an "Unknown filter time_diff" error in your Drupal Twig templates? That's because it isn't a native Drupal filter!

This guide provides the complete, step-by-step solution to implement a custom time_diff Twig filter in Drupal 9/10. Learn how to create a simple custom module, define a service for dependency injection (using the core datetime.time service), and write the PHP logic to calculate and format the time difference (e.g., "5 minutes ago"). This is the clean, maintainable way to extend Twig in Drupal.