Matt Glaman

443 Followers
100 Following
483 Posts

My book Understanding Drupal: A Complete Guide to Caching Layers is now published on LeanPub!

It covers the full caching stack: cacheable metadata, cache backends, render caching, response caching, HTTP headers, reverse proxies and CDNs, debugging, and writing cacheable code from scratch.

Three years in the making — worth it.

https://mglaman.dev/blog/understanding-drupal-complete-guide-caching-layers-now-published

#Drupal #PHP #WebDev

Understanding Drupal: A Complete Guide to Caching Layers is now published!

After starting in early 2023 and having a long hiatus from writing, my book Understanding Drupal: A Complete Guide to Caching Layers is now published on LeanPub! Three years ago (😱), I started working on this book that I wanted to self-publish.

mglaman.dev
The nightmare of permissions and OAuth scopes in Drupal

The Nightmare of Permissions and OAuth Scopes in DrupalDrupal's role-based access control is one of its strengths. Permissions and roles are well-understood, and the system is mature. But the moment you step outside the standard cookie-based session — say, into OAuth with the authorization code flow — you hit a wall that the core permission model never anticipated.

mglaman.dev

RE: https://phpc.social/@mglaman/115639715227012165

Update! All that remains is copy editing!

And fixing all of the cache debugging modules I wanted to include, none of them work on Drupal Core 11.3.

drupalorg-cli 0.8.0: GitLab issue fork and merge request commands

The 0.7.0 release was housekeeping — fixing the release notes command and clearing out deprecation warnings. 0.8.0 has two goals: add native GitLab issue fork and merge request commands, and make the CLI useful for developers using AI agents to assist with Drupal.org issues.

mglaman.dev

I know folks use drupal-mrn.dev, but many #Drupal maintainers still preferred to use my drupalorg-cli. The bad news is that the CLI was neglected and no longer works with newer commit formats.

But, now it does! 2.5 years later, drupalorg-cli has a new release

https://github.com/mglaman/drupalorg-cli

GitHub - mglaman/drupalorg-cli: A command line tool for interfacing with Drupal.org

A command line tool for interfacing with Drupal.org - mglaman/drupalorg-cli

GitHub
Automating Drupal release notes in Dependabot PRs

mglaman.dev

👋 Say hello to Drupal Canvas, a visual page builder now live for early testing. Build beautiful custom websites using a modern drag-and-drop, component-based interface. Try it and join the conversation.

🚀 This is the first stable milestone in a massive community-driven effort to modernize building with Drupal.

🔗 Learn more at https://www.drupal.org/blog/drupal-canvas-is-now-available-inside-drupals-new-visual-page-builder

#Drupal #DrupalCanvas #VisualBuilding #CMS #React

Preventing a `drush updb` from clearing your caches

By default, drush updb clears the cache after applying database updates. For deployments where you want to avoid an unnecessary performance hit, you can prevent this default behavior using a Drush pre-command hook. The updb command has a --cache-clear flag that you can set up in your CI workflow, but what about local testing? Will you or your team remember to set that flag every time?

mglaman.dev

Time flies, and you don't even know it. I sat down to wrap up "Understanding Drupal: A Complete Guide to Caching Layers" and rewrite the render cache chapter to include the variation cache added in Drupal 10.2... only to realize IT HAS BEEN TWO YEARS?!?!

Time to get cranking on some writing ✍️

If you're interested in the book, I am self-publishing on LeanPub https://leanpub.com/understanding-drupal-complete-guide-caching-layers

Understanding Drupal: A Complete Guide to Caching Layers

Master Drupal's full caching stack: render arrays, cache tags, HTTP headers, and reverse proxies. Real code, real APIs, every layer explained.

AI workflows will reshape development organizations

AI was a big topic at the EvolveDigital Summit last week. AI is also a big part of my day-to-day work. I've been thinking more and more about what it means for me as a software engineer.The "AI bubble" might burst (or maybe not), but the fundamental shift in development workflows has happened. The tools are here, and they aren't leaving. We are, though, witnessing a massive refactoring of roles. This change isn't the end of human coding; it's a shift in focus.

mglaman.dev