<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://www.tag1.com/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tag1 Insights for Planet Drupal</title>
    <link>https://www.tag1.com/</link>
    <atom:link href="https://www.tag1.com/planet-drupal.xml" rel="self" type="application/rss+xml" />
    <description>Dive into expert insights, deep analysis and forward-looking perspectives from the minds shaping Drupal, AI and open-source innovation.</description>
    <lastBuildDate>Wed, 11 Nov 2026 00:00:00 GMT</lastBuildDate>
    <language>en</language>
    
    <item>
      <title>Rebuilding a High-Traffic LMS Platform Mid-Flight</title>
      <link>https://www.tag1.com/blog/rebuilding-lms-mid-flight/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#marcin-grabias">Marcin Grabias</a>, Senior Drupal Engineer, explains how Tag1 un-vendored 100,000 lines of legacy Opigno code, extracted a decoupled TrainingManager service, and migrated live AFT and AFL-CIO platforms in place to the open source Drupal LMS module. 
    </div>
</div>
</div>
<p>When an enterprise web platform reaches a certain scale, the standard advice for handling architectural debt (freeze feature development, spin up a fresh site, and migrate) stops being an option. At Tag1 Consulting, we maintain the e-learning infrastructure behind two of the largest labor organizations in the United States: the American Federation of Teachers (AFT) and the American Federation of Labor and Congress of Industrial Organizations, AFL-CIO.</p>
<div class="flex flex-wrap items-center justify-center gap-8 my-8">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/aft.svg" alt="American Federation of Teachers (AFT) logo" width="85" height="80" />
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/afl-cio.svg" alt="AFL-CIO logo" width="318" height="80" />
</div>
<p>Share My Lesson (SML) is AFT's resource hub. It has more than two million registered educators who collaborate on classroom materials and participate in on-demand professional development webinars. Meanwhile, on dedicated platforms like AFT eLearning and the AFL-CIO's LaborLab, union members and stewards across the country complete leadership tracks, health and safety courses, and workplace training.</p>
<p>These platforms carry years of member training records, completion histories, and certificate logs. They also place very different technical demands on the stack: Share My Lesson needed e-learning added to a large existing content repository, while the union portals needed deep, multi-tenant course structures.</p>
<p>By late 2022, the ground beneath us was giving way. Our underlying system, built on the legacy Opigno LMS distribution, was buckling under years of accumulated technical debt.</p>
<p>This is the technical story of how we pulled 100,000 lines of legacy code out of contrib, extracted a decoupled navigation engine over 18 months, survived a major Group module entity overhaul, ran a dual-engine hybrid repository, and ultimately built the open source Drupal LMS module.</p>
<aside class="callout-cta my-10 p-4 xl:p-8 bg-purple text-white" style="--link-color: var(--color-turquoise); --decoration-color: var(--color-turquoise);">
    <div class="py-11 xl:py-8 px-4 xl:px-8 frame frame-white-35">
        <div class="relative z-10 mt-0 sm:text-xl">If you&#39;d rather watch the presentation, the DrupalCon Rotterdam session includes the audience Q&amp;A. <a class="group underline hover:no-underline focus:no-underline" href="https://www.tag1.com/conference-sessions/drupalcon-2026-rotterdam-lms-mid-flight/">Watch my DrupalCon Rotterdam session.<span aria-hidden="true"> ></span></a></div>
    </div>
</aside>
<h2>The Breaking Point: How Distributions Become Traps</h2>
<p>When Tag1 started this e-learning project in 2017, adopting Opigno's early Drupal 8 alpha seemed like a sensible place to start. It gave us ready-made entities for courses, modules, and activities. Crucially, it anchored class memberships on the new Group module (1.0-RC at the time).</p>
<p>We're grateful to Opigno for pioneering e-learning in Drupal. It proved that Drupal's entity system could model a school curriculum. But as Drupal matured through versions 8, 9, and 10, the monolithic distribution architecture began working against us.</p>
<p>In Drupal 7, full-stack distributions were the gold standard. In modern Drupal, they can easily become an architectural straitjacket. Because Opigno was a distribution, it arrived as an all-or-nothing monolith: its own opinionated theme, its own administrative UI, and dozens of deeply interconnected submodules.</p>
<p>When I joined the project in 2021 to help guide the Drupal 8-to-9 upgrade, the cracks were widening. Unused submodules couldn't be disabled without cascading fatal errors. Critical features relied on dangerous runtime anti-patterns, such as serializing raw PHP objects into user dashboard records, which reliably corrupted whenever a module updated. Worst of all, our team was writing high-quality patches to fix infinite recursion and data-loss edge cases, but our fixes sat unreviewed in upstream queues for months, then years. Every upstream release became an event we dreaded, threatening to overwrite our hotfixes or introduce new regressions.</p>
<p>The dealbreaker came when AFT wanted to bring online learning directly to Share My Lesson (SML).</p>
<p>SML was already a high-traffic Drupal site with its own custom theme, established content types, and over 2 million registered educators. You cannot install a distribution on top of an existing Drupal database. We didn't need an entire operating system; we needed a composable module.</p>
<p>Every hour spent rebasing patches and fighting upstream distribution baggage was an hour that could have been spent on extending educational features. Our clients deserved better, and that required a change of course.</p>
<h2>Step 1: Taking Ownership (Un-Vendoring 100,000 Lines of Code)</h2>
<p>The first step of rebuilding mid-flight didn't feel like brilliant architecture. It felt terrifying.</p>
<p>On September 14, 2022, my colleague <a href="https://www.tag1.com/team/#nathaniel-catchpole">Nat Catchpole</a> did the fork. He went into <code>composer.json</code>, removed the constraints for <code>opigno_learning_path</code> and <code>opigno_module</code>, and copied 665 files and over 100,000 lines of code directly from <code>web/modules/contrib/</code> into <code>web/modules/custom/</code>.</p>
<p>Committing 100,000 lines of someone else's procedural legacy code to your own custom folder goes against every instinct you have as an open source engineer. But it transformed our day-to-day work and gave us hope for a cleaner environment.</p>
<p>Suddenly, we were no longer passive consumers waiting on an upstream release cycle that wasn't responding. We were done maintaining a fragile, multi-layered stack of Composer patches. Within 48 hours of that commit, I was deep inside the navigation internals (<code>LpSteps.php</code>), hunting down and fixing recursive nesting bugs and <code>FALSE-&gt;id()</code> fatal errors that had haunted our student completion callbacks for months.</p>
<h2>Step 2: Extracting the Engine into TrainingManager</h2>
<p>Once the code lived in <code>web/modules/custom/</code>, the real surgery began.</p>
<p>In the legacy distribution, course navigation, access gatekeeping, and scoring calculations were scattered across the codebase. Some logic was trapped inside Form API submit handlers; some lived in controller redirects; some was buried in procedural helper functions inside <code>.module</code> files. If a client asked to change how passing grades were calculated or requested a &quot;no-fail&quot; revisit mode, I had to hunt through half a dozen disconnected files to make sure I didn't break a hidden dependency.</p>
<p>We needed a presentation-agnostic state machine.</p>
<p>In October 2022, <a href="https://www.tag1.com/team/#nathaniel-catchpole">Nat</a> planted the seed: he committed a tiny, 51-line service class called <code>TrainingManager.php</code> with a single query method. Over the next 18 months, across more than 70 targeted commits, I used that file as my anchor.</p>
<p>Whenever I touched a legacy feature, I extracted its business logic from the controllers and forms, refactored it into clean, testable object-oriented PHP, and moved it into <code>TrainingManager</code>. Method by method, commit by commit, I taught the service to manage the entire student lifecycle through five responsibilities:</p>
<ol>
<li>
<p>Progress Tracking: Loading and creating unambiguous status records across courses, lessons, and activities.</p>
</li>
<li>
<p>Navigation State: Deciding whether a user can advance, whether lesson rules allow backward navigation, and whether jumping ahead is permitted.</p>
</li>
<li>
<p>Lifecycle Gatekeeping: Initializing and updating lesson attempt records and verifying prerequisite lesson completions.</p>
</li>
<li>
<p>Scoring and Routing: Calculating weighted scores, evaluating mandatory vs. optional modules, and routing open-text submissions to instructor grading queues.</p>
</li>
<li>
<p>Maintenance Utilities: Providing administrative methods to recalculate out-of-sync student attempts or safely reset training progress on courses that needed updates.</p>
</li>
</ol>
<p>In the legacy codebase, navigation and tracking had sprawled across nearly 6,000 lines of tangled procedural code between <code>opigno_learning_path.module</code> and <code>opigno_module.module</code>.</p>
<p>Consolidated into a pure service using dependency injection, the same logic took roughly 1,000 lines of clean PHP in the <code>TrainingManager</code> service.</p>
<p>More importantly, our forms and controllers became thin, dumb delegates. They no longer made business decisions; they asked the <code>TrainingManager</code> what should happen next. Because the engine was now decoupled from Drupal's render arrays and Form API, it was inherently headless-ready.</p>
<h2>Step 3: Surviving the Group 3.x Entity Overhaul</h2>
<p>Courses and classes across our stack are built on the Group module. Because Opigno was tightly coupled to early Drupal 8 APIs, our codebase had been pinned to Group 1.0-RC for six years (2018 to 2024). We were running production sites on a release candidate while Drupal core marched from 8 to 10.</p>
<p>When we finally moved to Group 3.x in early 2024, it wasn't a standard dependency bump. Group maintainer <a href="https://www.tag1.com/team/#kristiaan-van-den-eynde">Kristiaan Van den Eynde</a> had re-architected the module's internal domain model: the foundational <code>group_content</code> entity type and its configuration entity (<code>group_content_type</code>) were deprecated and replaced by <code>group_relationship</code> and <code>group_relationship_type</code>.</p>
<p>This wasn't a cosmetic rename of a few methods; it was a seismic shift that touched our live database:</p>
<ul>
<li>
<p>Physical Database Migrations: On live databases holding years of student history, primary MySQL tables (<code>group_content</code> and <code>group_content_field_data</code>) had to move to <code>group_relationship</code> tables without orphaning or dropping a single active membership.</p>
</li>
<li>
<p>Query and Storage Sweeps: We had to rewrite every query, storage handler call, and entity hook (<code>hook_group_content_*</code>) across our stack that targeted the old entity type.</p>
</li>
<li>
<p>Broken Views: Dozens of student gradebooks, course catalogs, and administrative rosters lost their relationship joins overnight when the underlying base tables changed, requiring systematic reconfiguration across multiple affiliate sites.</p>
</li>
</ul>
<p><a href="https://www.tag1.com/team/#nathaniel-catchpole">Nat</a> and I survived this live schema migration in two intensive sweeps across dozens of commits. It was grueling work, but shedding six years of technical debt paid off: native alignment with Drupal core's Access Policy API and VariationCache, which permanently eliminated the database permission bottlenecks that used to slow down the site during concurrent quizzes. <a href="https://www.tag1.com/team/#kristiaan-van-den-eynde">Kristiaan</a> also helped every upgrading project, including ours, by providing an update hook so a full migration wasn't needed.</p>
<h2>Step 4: The Clean 1.0 Rewrite and the Hybrid Strategy</h2>
<p>By spring 2024, our custom refactored code was humming in production. It was time to give this work back to the community.</p>
<p>I created the <a href="https://www.drupal.org/project/lms" target="_blank" rel="noopener"><code>drupal/lms</code> project on Drupal.org</a>. But as soon as I started writing the public 1.0.x branch, I decided not to carry legacy procedural code into the contrib project. I wanted a clean-room architecture featuring typed plugins, modern PHP attributes (<code>#[ActivityAnswer]</code>), Single Directory Components (SDC), and normalized JSON answer data storage.</p>
<p>This led directly into the classic enterprise trap: How do you build a breaking, clean-room 1.0 release on <a href="http://drupal.org/">Drupal.org</a> when learners on your live client platforms are taking exams on the older 0.2.x fork?</p>
<p>You cannot run <code>composer update drupal/lms</code> across a decade of live production data and hope for the best.</p>
<p>In June 2025, we made what I consider our most effective risk-management decision: the hybrid repository strategy.</p>
<p>We permanently froze our working 0.2.x code inside <code>web/modules/custom/lms/</code>. Production users continued logging in, taking mandatory tests, and earning licenses against this battle-tested codebase.</p>
<p>Simultaneously, we required our modern <code>drupal/lms</code> contrib package in <code>web/modules/contrib/lms/</code>.</p>
<p>This gave us the freedom to build the future out in the open. Contributors such as <a href="https://www.drupal.org/u/claudiucristea" target="_blank" rel="noopener">Claudiu Cristea</a> standardized our dependency injection and PHP attributes; <a href="https://www.drupal.org/u/ob3ron" target="_blank" rel="noopener">Oberon Ray</a> modernized our frontend using Single Directory Components and built rich feedback question plugins; and <a href="https://www.tag1.com/team/#nathaniel-catchpole">Nat</a> brought core-level traits and caching rigor.</p>
<p>Both engines lived side by side in the exact same codebase and database. Production never stopped, and the contrib project never took on legacy hacks. All we needed was the bridge to move the data across.</p>
<h2>Step 5: The In-Place Data Migration</h2>
<p>To build that bridge, our colleague <a href="https://www.tag1.com/team/#mauricio-dinarte">Mauricio Dinarte</a> wrote <a href="https://www.drupal.org/project/lms_migrate" target="_blank" rel="noopener"><code>lms_migrate</code></a>, a comprehensive Migrate Plus pipeline.</p>
<p>Instead of setting up a fragile, multi-server ETL (extract, transform, load) process between two databases, we chose to migrate in place and we had all we needed in every site database already. Because the old custom module and the new contrib module ran in parallel within the same Drupal installation, we gained four advantages:</p>
<ol>
<li>
<p>Zero Media and User Overhead: We didn't have to spend weeks migrating user accounts, taxonomy vocabularies, file entities, or media libraries. They were already there.</p>
</li>
<li>
<p>Calling Runtime APIs Directly: In legacy Opigno, certain student statuses were not stored cleanly on entity tables; they were calculated through procedural helper functions. Because both modules were enabled simultaneously, <a href="https://www.tag1.com/team/#mauricio-dinarte">Mauricio</a>'s migration plugins could call our backend PHP APIs directly during the ETL process to extract and normalize historical attempt states.</p>
</li>
<li>
<p>URL Alias Swapping and 301 Redirects: Teachers had tens of thousands of bookmarked links to specific courses. The migration automatically applied an administrative prefix to legacy Opigno course URLs, reassigned the canonical URL alias directly to the new <code>lms_course</code> entity, and spun up 301 redirects wherever path structures differed.</p>
</li>
<li>
<p>Pivoting to Revisions Midstream: When we introduced an enterprise course revisioning strategy in Drupal LMS 1.1, the migration pipeline was already halfway built. Because our architecture was modular, <a href="https://www.tag1.com/team/#mauricio-dinarte">Mauricio</a> updated the migration mapping to populate the new revision base fields before the final cutover, preserving complete version auditability.</p>
</li>
</ol>
<p>The generic foundation of this migration pipeline is now available to the entire community at <a href="https://www.drupal.org/project/lms_migrate" target="_blank" rel="noopener">drupal.org/project/lms_migrate</a>.</p>
<h2>Architectural Highlights in Drupal LMS</h2>
<p>By stripping away the distribution and rebuilding purely on modern Drupal core APIs, we built engineering patterns that I'm proud of.</p>
<h3>1. Recursive Modal Subforms</h3>
<p>Editing a multi-layered course structure, where courses contain lessons and lessons contain activities, often pushes developers toward heavy decoupled JavaScript apps. Opigno took that route with a React based Course Manager and multiple endpoint controllers.</p>
<p>We replaced that entire decoupled frontend with native Drupal Form API and AJAX modal subforms. A subform inside a modal submits to an internal endpoint that validates the data, rebuilds the parent form, and stores the intermediate state in Drupal's form cache. Because requests handle state recursively, there is no nesting limit. You can edit an activity inside a lesson inside a course, and the parent form receives the unified submission tree, with no third-party JavaScript framework. Using Drupal Core entity form API also automatically handles all security, performance and scalability issues that'd be valid in case of a custom solution.</p>
<h3>2. Session-Based Entity Storage for Anonymous Learners</h3>
<p>Public education and enterprise demos often require letting anonymous users try a course without registering first.</p>
<p>Traditionally, tracking student progress requires a database row tied to a user ID. We implemented an adaptive entity storage handler for our <code>LessonStatus</code> and <code>Answer</code> entities. If the user is anonymous, the handler stores their progress in their active PHP session. If they register or log in later, the handler can write their attempts to the database. To prevent per-user session states from breaking page caching, action buttons and navigation links use Drupal Core Lazy Builders to remain completely cacheable via BigPipe.</p>
<h3>3. Plugin-Driven Bundle Field Installation</h3>
<p>In Drupal LMS, <code>ActivityType</code> is a configuration entity that defines a bundle of the <code>Activity</code> content entity. Each bundle connects to an answer plugin (Multiple Choice, Drag-and-Drop, Free Text with Teacher Evaluation, etc.).</p>
<p>Instead of complex schema update scripts, our plugins declare the fields they need using configuration templates containing bundle placeholders:</p>
<pre class="language-yaml"><code class="language-yaml"><span class="token comment"># Config template provided by an Answer Plugin</span>
<span class="token key atrule">id</span><span class="token punctuation">:</span> activity._bundle_placeholder_.field_answer_options
<span class="token key atrule">field_name</span><span class="token punctuation">:</span> field_answer_options
<span class="token key atrule">entity_type</span><span class="token punctuation">:</span> activity
<span class="token key atrule">bundle</span><span class="token punctuation">:</span> <span class="token string">'_bundle_placeholder_'</span></code></pre>
<p>When an administrator creates an Activity Type in the UI, the answer plugin automatically installs those fields onto that bundle. Activities remain 100% fieldable, meaning editors can attach custom media and descriptive fields, or style the entire presentation with Layout Builder.</p>
<h2>Reversing the Decay Curve</h2>
<p>Long-lived codebases tend to decay. Patches accumulate, dependencies rot, and projects become fragile places where developers dread touching old code.</p>
<p>By isolating the engine and unbundling the monolith, we reversed that curve:</p>
<ul>
<li>
<p>From 100,000+ lines of fragile procedural code down to ~40,000 lines of clean, object-oriented modern PHP.</p>
</li>
<li>
<p>From a 4,000-line procedural monster down to a 1,000-line testable <code>TrainingManager</code> service.</p>
</li>
<li>
<p>From an all-or-nothing distribution down to a composable module that dropped into Share My Lesson and is ready for the Drupal CMS Recipe era.</p>
</li>
</ul>
<p>Rebuilding mid-flight is not easy. It demands patience, defensive Git workflows, and an unwavering commitment to protecting live user data. But by taking ownership of the legacy code, isolating the core business logic first, running hybrid tracks, and migrating in place, you don't have to choose between keeping the lights on and building software you're genuinely proud of.</p>
<p>Drupal LMS is production-ready, stable at 1.2.x, and 100% open source. Check out the project at <a href="https://www.drupal.org/project/lms" target="_blank" rel="noopener">drupal.org/project/lms</a>, or join us in the #lms channel on Drupal Slack.</p>
<aside class="callout-cta my-10 p-4 xl:p-8 bg-purple text-white" style="--link-color: var(--color-turquoise); --decoration-color: var(--color-turquoise);">
    <div class="py-11 xl:py-8 px-4 xl:px-8 frame frame-white-35">
        <div class="relative z-10 mt-0 sm:text-xl">From legacy distributions to live-data migrations, Tag1 helps enterprise teams modernize Drupal without taking their sites offline. <a class="group underline hover:no-underline focus:no-underline" href="https://www.tag1.com/drupal/">Explore our Drupal services.<span aria-hidden="true"> ></span></a></div>
    </div>
</aside>
]]></description>
      <pubDate>Wed, 11 Nov 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Marcin Grabias</dc:creator>
      <guid>https://www.tag1.com/blog/rebuilding-lms-mid-flight/</guid>
    </item>
    
    
    <item>
      <title>Goose 0.19: Watch Your Load Test While It Runs</title>
      <link>https://www.tag1.com/blog/goose-0-19-watch-your-load-test-while-it-runs/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
        Tag1 Founding Partner and CEO <a href="https://www.tag1.com/team/#jeremy-andrews">Jeremy Andrews</a>, introduces Goose 0.19, which adds a live browser dashboard, pass/fail thresholds that can fail a CI build, response times to the microsecond, and peak memory cut from 959 MiB to 214 MiB at 1,000 users. Its companion crate, goose-eggs 0.7, adds helpers for load testing WordPress and WooCommerce sites.
    </div>
</div>
</div>
<p>Goose 0.19, the latest release of <a href="https://www.tag1.com/goose/">Tag1's open source load testing tool</a>, lets you watch a load test in your browser while it runs. Response times, errors and active users update every second, so when a site starts to slow down you see it as it happens. Alongside it, goose-eggs 0.7 adds helpers for load testing WordPress and WooCommerce sites, and Goose itself can now fail a CI build when a site gets slower, keeps every response time to the microsecond, and runs in a quarter of the memory or less.</p>
<p>We compared Goose against k6 and Locust, all three in the same configuration of 1,000 users over HTTPS, running on the same two cores against the same web server. Goose sent 21,400 requests a second, against 15,800 for k6 and 8,400 for Locust, using less CPU per request than either and a fraction of the memory. The full results, and how we ran each tool, are found in this blog under the heading <a href="https://www.tag1.com/#compared-with-k6-and-locust">Compared with k6 and Locust</a>.</p>
<figure class="component my-10 grid gap-4">
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="-sNYA8rYLEE" playlabel="Play: An Overview of What&#39;s New in Goose 0.19" style="background-image: url(/img/insights/content/goose-0-19-video-overview.jpg)"></lite-youtube>
<figcaption class="italic text-[var(--text-color)]">An overview of what's new in Goose 0.19.</figcaption>
</figure>
<h2>Watch a Load Test in Your Browser</h2>
<p>There's no new code to write. Any Goose 0.19 load test gets the <a href="https://book.goose.rs/controller/dashboard.html" target="_blank" rel="noopener">live web dashboard</a> once you turn on the experimental <code>dashboard</code> feature in <code>Cargo.toml</code>:</p>
<pre class="language-toml"><code class="language-toml"><span class="token key property">goose</span> <span class="token punctuation">=</span> <span class="token punctuation">{</span> <span class="token key property">version</span> <span class="token punctuation">=</span> <span class="token string">"^0.19"</span><span class="token punctuation">,</span> <span class="token key property">features</span> <span class="token punctuation">=</span> <span class="token punctuation">[</span><span class="token string">"dashboard"</span><span class="token punctuation">]</span> <span class="token punctuation">}</span></code></pre>
<p>Then add <code>--dashboard</code> to the command line and open <code>http://127.0.0.1:5118/</code>. Out of the box the page is read only. To start and stop the test and add or remove users from the browser, add <code>--dashboard-control</code> with either an auth token or <code>--dashboard-no-auth</code> (fine on your own laptop, less fine on a machine you share, and Goose prints a warning whenever you use it). The dashboard listens on localhost unless you tell it otherwise.</p>
<figure class="component my-10 grid gap-4">
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="J_a6keNMnL8" playlabel="Play: A Goose 0.19 Dashboard Run Against Drupal Umami" style="background-image: url(/img/insights/content/goose-0-19-video-dashboard-run.jpg)"></lite-youtube>
<figcaption class="italic text-[var(--text-color)]">A load test of the Drupal Umami demo site, started from the dashboard at 50 users, raised to 400 while it runs, then stopped, and the saved report opened.</figcaption>
</figure>
<p>A useful new addition is the heatmap. Each column is one second of response times, so you can see a slow tail grow (or a cache warm up) long before it moves the average. You can show it for all requests or pick one request, so if only the checkout page gets slow, you can focus on it.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-19-dashboard-heatmap.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-19-dashboard-heatmap.png" alt="The Goose dashboard heatmap, where each column is one second of response times." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 1: The Dashboard Heatmap, One Column per Second of Response Times</figcaption>
</figure><p></p>
<p>Below that are tables of every scenario, every transaction and the 100 busiest requests, and an errors table that fills in as errors happen. If you run with coordinated omission mitigation on (<code>--co-mitigation average</code>, for example), the requests table and the headline figures switch to coordinated omission adjusted times once mitigation has recorded an event. When a run ends, the dashboard can save its report into that run's own folder, so the runs panel lists earlier runs to download and compare.</p>
<p>The dashboard is opt in for 0.19. We'd like it to be on by default in 1.0, so please try it out and provide feedback. In the meantime it's cheap to leave on. In our 1,000 user memory tests it added about 2 MiB of memory and no added CPU we could measure. The Goose Book's <a href="https://book.goose.rs/controller/dashboard-reference.html#graphdata-memory-cost" target="_blank" rel="noopener">dashboard reference</a> says how that grows with more request names and longer runs.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-19-dashboard-umami.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-19-dashboard-umami.png" alt="The whole Goose dashboard mid run against Drupal Umami with 200 users." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 2: The Full Goose Dashboard Mid Run Against Drupal Umami, 200 Users</figcaption>
</figure><p></p>
<h2>Load Testing WordPress and WooCommerce</h2>
<p>For years Goose has had Drupal helpers in goose-eggs, its companion crate, and an <a href="https://book.goose.rs/example/umami.html" target="_blank" rel="noopener">example load test</a> against Drupal's Umami demo site. WordPress runs a much bigger slice of the web (nearly 40% of websites, by <a href="https://w3techs.com/technologies/details/cm-wordpress" target="_blank" rel="noopener">W3Techs' count</a>), so <a href="https://github.com/tag1consulting/goose-eggs" target="_blank" rel="noopener">goose-eggs 0.7</a> adds helpers for both WordPress and WooCommerce. The WordPress side logs in and out, searches, comments, creates and updates posts through the REST API, and finds content from the sitemap. The WooCommerce side browses the shop, searches, adds to the cart through WooCommerce's Store API (keeping each user's nonce through cart and checkout, as the Store API requires), checks out, and visits My Account.</p>
<p>The new <a href="https://github.com/tag1consulting/goose-eggs/tree/main/examples/woocommerce" target="_blank" rel="noopener"><code>woocommerce</code> example</a> in goose-eggs uses the helpers to simulate browsing shoppers, buyers and returning customers, and its README lists what a WooCommerce shop needs to run it.</p>
<figure class="component my-10 grid gap-4">
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="UdaZDX4wpeM" playlabel="Play: Load Testing a WooCommerce Shop with Goose" style="background-image: url(/img/insights/content/goose-0-19-video-woocommerce-run.jpg)"></lite-youtube>
<figcaption class="italic text-[var(--text-color)]">Shoppers browsing, adding to the cart and checking out, with each step's response times filling the dashboard.</figcaption>
</figure>
<h2>Fail the CI Build When a Site Gets Slower</h2>
<p>This one is less visual than the dashboard but is useful for day to day testing automation. Goose 0.19 adds <a href="https://book.goose.rs/getting-started/thresholds.html" target="_blank" rel="noopener">thresholds</a>: pass or fail rules given on the command line.</p>
<p><code>--threshold &quot;p95&lt;500ms&quot; --threshold &quot;error-rate&lt;1%&quot;</code></p>
<p>Rules can check any percentile, the average, the maximum, the error rate or requests per second, for the whole test or for one request (<code>p99&lt;2s for GET /checkout</code>). Once all users are up and the test is holding at its target, Goose checks every rule once a second. The first rule to fail stops the test through Goose's <a href="https://www.tag1.com/blog/enhancing-goose-load-testing-with-ai/">killswitch</a>, with a message naming the rule and what it saw. (If you'd rather run the whole test and judge it at the end, add <code>--no-threshold-abort</code>.)</p>
<p>Either way, a failed rule makes Goose return an error, so a load test whose <code>main</code> passes it up with <code>?</code> (as every example does) exits nonzero, which is all a CI system needs to fail the build.</p>
<figure class="component my-10 grid gap-4">
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="6x0iuNeDS0Q" playlabel="Play: Goose Thresholds Passing and Failing a Run" style="background-image: url(/img/insights/content/goose-0-19-video-thresholds-ci.jpg)"></lite-youtube>
<figcaption class="italic text-[var(--text-color)]">Two runs against the same site: one whose rules pass and exits 0, then one with a 50 ms p95 the site can't meet, which stops and exits 1.</figcaption>
</figure>
<p>A GitHub Actions job that runs your load test against staging on every pull request, and fails when the site gets slower, looks like this (it tests whatever staging is running, so deploy the change there first):</p>
<pre class="language-yaml"><code class="language-yaml"><span class="token key atrule">name</span><span class="token punctuation">:</span> load<span class="token punctuation">-</span>test
<span class="token key atrule">on</span><span class="token punctuation">:</span> <span class="token punctuation">[</span>pull_request<span class="token punctuation">,</span> workflow_dispatch<span class="token punctuation">]</span>
<span class="token key atrule">jobs</span><span class="token punctuation">:</span>
  <span class="token key atrule">goose</span><span class="token punctuation">:</span>
    <span class="token key atrule">runs-on</span><span class="token punctuation">:</span> ubuntu<span class="token punctuation">-</span>latest
    <span class="token key atrule">steps</span><span class="token punctuation">:</span>
      <span class="token punctuation">-</span> <span class="token key atrule">uses</span><span class="token punctuation">:</span> actions/checkout@v7
      <span class="token punctuation">-</span> <span class="token key atrule">uses</span><span class="token punctuation">:</span> dtolnay/rust<span class="token punctuation">-</span>toolchain@stable
      <span class="token punctuation">-</span> <span class="token key atrule">uses</span><span class="token punctuation">:</span> Swatinem/rust<span class="token punctuation">-</span>cache@v2
      <span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> Run the load test with pass/fail rules
        <span class="token key atrule">run</span><span class="token punctuation">:</span> <span class="token punctuation">|</span><span class="token scalar string">
          cargo run --release -- \
            --host "${{ vars.STAGING_URL }}" \
            --users 50 --increase-rate 10 --run-time 2m \
            --quiet --threshold "p95&lt;500ms" --threshold "error-rate&lt;1%" \
            --report-file report.html</span>
      <span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> Keep the report<span class="token punctuation">,</span> pass or fail
        <span class="token key atrule">if</span><span class="token punctuation">:</span> always()
        <span class="token key atrule">uses</span><span class="token punctuation">:</span> actions/upload<span class="token punctuation">-</span>artifact@v7
        <span class="token key atrule">with</span><span class="token punctuation">:</span>
          <span class="token key atrule">name</span><span class="token punctuation">:</span> goose<span class="token punctuation">-</span>report
          <span class="token key atrule">path</span><span class="token punctuation">:</span> report.html</code></pre>
<p>The report is kept whether the job passes or fails, and it has a Thresholds section showing each rule, what it measured, and which one, if any, stopped the run.</p>
<h2>Response Times to the Microsecond</h2>
<p>Goose used to keep response times in whole milliseconds, which was fine for most websites but too coarse for very fast ones. Against a server answering in about 0.6 ms, 0.18.1 reported an average of 0.01 ms (lower than its own 1 ms minimum) and every percentile up to the 99th as 1 ms. 0.19.0 keeps every time to the microsecond (percentiles come from buckets, so they're never more than 1% off), and reports a median of 0.59 ms and a 99th percentile of 1.05 ms for the same server.</p>
<p>The console, HTML, Markdown and PDF reports and the dashboard show times under 10 ms to the hundredth of a millisecond. (0.19.0's JSON report still wrote its percentiles in whole milliseconds; 0.19.1 adds microsecond fields beside them.)</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-18-1-response-times.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-18-1-response-times.png" alt="Goose 0.18.1 response times against a server answering in about 0.6 ms, with every percentile at 1 ms." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 3: Goose 0.18.1 Response Times Against a Server Answering in About 0.6 ms, Every Percentile at 1 ms</figcaption>
</figure><p></p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-19-0-response-times.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-19-0-response-times.png" alt="Goose 0.19.0 response times against the same server, to the hundredth of a millisecond." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 4: Goose 0.19.0 Response Times Against the Same Server, to the Hundredth of a Millisecond</figcaption>
</figure><p></p>
<h2>A Quarter of the Memory, or Less</h2>
<p>Every release we try to make Goose cheaper to run, but this time the difference was big enough that we wanted real numbers before saying anything. So we ran Goose 0.18.1 and 0.19.0 on the same two cores of an arm64 machine in our Kubernetes cluster, against a small Rust web server on another machine. Each test ran five times per version, 20 minutes a run at 1,000 users and 10 minutes at 5,000, with the builds taking turns one run at a time. At 1,000 users, 0.19.0 with the dashboard on took a turn as well.</p>
<p>With 1,000 users requesting a page as fast as they could, 0.18.1 used 959 MiB of memory and 0.19.0 used 214 MiB. With a more realistic shape (5,000 users, each waiting 1 to 3 seconds between requests) 0.18.1 used 4,480 MiB and 0.19.0 used 763 MiB.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-19-peak-memory.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-19-peak-memory.png" alt="Bar chart of peak memory at 1,000 users for Goose 0.18.1, 0.19.0, and 0.19.0 with the dashboard." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 5: Peak Memory at 1,000 Users for Goose 0.18.1, 0.19.0, and 0.19.0 with the Dashboard</figcaption>
</figure><p></p>
<p>The biggest single piece of the old memory we could trace was TLS, even though these tests never used HTTPS. Every Goose user gets its own HTTP client (so each user keeps its own cookies and session, as a real browser would), and in 0.18.1 each of those clients had OpenSSL load and parse the system's whole certificate bundle into a store of its own. 0.19 moved to reqwest 0.13, which uses rustls, and building a client now costs a fraction of that.</p>
<p>CPU went down too, though less dramatically. In the 1,000 user test, 0.19.0 spent 9% less of its own CPU per request than 0.18.1, and ran 23% fewer instructions per request (at 5,000 users it was also 9% less of its own CPU, with about half the instructions). Requests per second went up about 5%, but we wouldn't lean on that one. Two builds of the same source varied by about 2% on this machine, and the kernel's network processing took more than half of those two cores.</p>
<p>We also left 0.19.0 running for 12 hours with the dashboard open. It sent a little over a billion requests with no failures, and Goose's count matched the web server's own count exactly. Memory went from 219 MiB at the first hour to 225 MiB at the twelfth. Goose keeps a per second history for its graphs, which explains some of that growth, and we're still looking into the rest. Requests per second, CPU per request and the 99th percentile stayed flat the whole time.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/goose-0-19-memory-12-hours.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/goose-0-19-memory-12-hours.png" alt="Line chart of memory over 12 hours for Goose 0.19.0 with the dashboard, against an earlier 12 hour run of 0.18.1." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 6: Memory over 12 Hours, 0.19.0 with the Dashboard Against an Earlier 0.18.1 Run</figcaption>
</figure><p></p>
<h2 id="compared-with-k6-and-locust">Compared with k6 and Locust</h2>
<p>All three tools sent requests with no wait between them. Locust ran <code>FastHttpUser</code> with two worker processes, one per core, as <a href="https://docs.locust.io/en/stable/increase-performance.html" target="_blank" rel="noopener">its docs</a> recommend for throughput. k6 ran its <code>constant-vus</code> executor and, as k6's <a href="https://grafana.com/docs/k6/latest/testing-guides/running-large-tests/" target="_blank" rel="noopener">guide to running large tests</a> recommends, discarding response bodies to save memory. Most real sites are HTTPS, so the numbers below are over HTTPS with certificates fully checked (Locust's <code>FastHttpUser</code> skips the check unless you turn it on, so we turned it on).</p>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th style="text-align:left">Over HTTPS, 1,000 users, 2 cores</th>
<th style="text-align:right">Goose 0.19.0</th>
<th style="text-align:right">k6 2.3.0</th>
<th style="text-align:right">Locust 2.47.0</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Requests per second</td>
<td style="text-align:right">21,432</td>
<td style="text-align:right">15,838</td>
<td style="text-align:right">8,415</td>
</tr>
<tr>
<td style="text-align:left">CPU per request, tool and kernel</td>
<td style="text-align:right">93 µs</td>
<td style="text-align:right">126 µs</td>
<td style="text-align:right">238 µs</td>
</tr>
<tr>
<td style="text-align:left">Peak memory</td>
<td style="text-align:right">198 MiB</td>
<td style="text-align:right">1,388 MiB</td>
<td style="text-align:right">919 MiB</td>
</tr>
</tbody>
</table>
</div>
<p>The CPU row counts both the tool's own CPU (the user and system time charged to its processes) and the kernel's network processing for its connections (interrupt time not charged to the tool's processes), since both came out of the same two cores.</p>
<p>Over plain HTTP the order was the same for throughput and CPU, but Locust used a little less memory than Goose, 190 MiB against 212. Goose was higher because each of its 1,000 users builds its own HTTP client with a TLS certificate store (about 81 MiB in all) whether or not it ever speaks HTTPS. A load test that doesn't need cookies can avoid most of that cost, since <a href="https://book.goose.rs/config/cookie.html#the-type-safe-client-builder" target="_blank" rel="noopener"><code>set_client_builder_without_cookies</code></a> gives every user one shared client.</p>
<p>The throughput and CPU gaps in the table may look smaller than you'd expect from a tool written in Rust. Asking for one tiny page as fast as possible puts a big share of each request's cost in the kernel's network processing, about 50 µs a request, and for Goose that was more than half of its CPU per request.</p>
<p>Counting only each tool's own CPU, Goose needed 41 µs per request over HTTPS, against 76 for k6 and 173 for Locust. Put another way, at 41 µs of its own CPU a request, one core is enough for Goose's own share of about 24,000 verified HTTPS requests a second. A real load test that logs in, fills carts and checks pages gives each tool more of its own work to do, so the gap in real world load tests is even wider.</p>
<h2>Other Changes in 0.19</h2>
<p>There's a lot more in this release than fits here, and the <a href="https://github.com/tag1consulting/goose/blob/release-0.19/CHANGELOG.md" target="_blank" rel="noopener">CHANGELOG</a> has all of it. A few highlights:</p>
<ul>
<li>Every run can write its reports and logs into its own folder, and logs can be gzipped (a request log at the default gzip compression level was about 60 times smaller than plain JSON).</li>
<li>PDF reports, with the <code>pdf-reports</code> feature.</li>
<li><code>--baseline-file</code> compares a run against an earlier report, with the difference shown in the HTML, Markdown and PDF reports.</li>
<li><code>--increase-rate</code>, <code>--increase-time</code>, <code>--decrease-rate</code> and <code>--decrease-time</code> replace <code>--hatch-rate</code> and <code>--startup-time</code>, so a test can ramp down as well as up without writing a test plan.</li>
<li>The telnet and WebSocket Controllers now listen only on localhost by default, and the WebSocket Controller is off unless you ask for it.</li>
</ul>
<p>Some of these change how existing load tests behave, so if you're coming from 0.18, read the Goose Book's <a href="https://book.goose.rs/getting-started/upgrading.html" target="_blank" rel="noopener">Upgrading From 0.18</a> page first.</p>
<h2>What's Next</h2>
<p>Gaggles, Goose's distributed load tests (a manager process coordinating any number of workers), will be reintroduced in the 0.20 release. From there, we will focus on a stable 1.0. If you try the dashboard or thresholds, we'd love to hear how they go, good or bad, in a <a href="https://github.com/tag1consulting/goose/issues" target="_blank" rel="noopener">GitHub issue</a>. If you're new to Goose, the <a href="https://book.goose.rs/" target="_blank" rel="noopener">Goose Book</a> is the place to start.</p>
]]></description>
      <pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Jeremy Andrews</dc:creator>
      <guid>https://www.tag1.com/blog/goose-0-19-watch-your-load-test-while-it-runs/</guid>
    </item>
    
    
    <item>
      <title>From Malloc to Match (Part 2): The Evolution of PHP Through the Lens of a Systems Programmer</title>
      <link>https://www.tag1.com/blog/from-malloc-to-match-part-2/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#jeremy-andrews">Jeremy Andrews</a>, Tag1's Founding Partner and CEO, follows PHP and Drupal from the Symfony-driven rebuild of Drupal 8, through PHP 7's engine rewrite that shrank a typical value from about 48 bytes to 16, to Drupal 11.4, which needs just over a third of the database and cache lookups of Drupal 11.0 on a cold cache. He also shows how fixes from a Tag1 audit of London.gov.uk cut its slowest requests from about 75,000 database queries to 10,000. 
    </div>
</div>
</div>
<p><em>This is Part 2 of a two-part series. <a href="https://www.tag1.com/blog/from-malloc-to-match-part-1/">Part 1</a> traced PHP's evolution from a C library wrapper through Drupal 7, where the procedural model hit its ceiling. This part covers the Java-fication of Drupal, the engine-level work that saved PHP from itself, and what Drupal and PHP are getting right about performance now.</em></p>
<p>The year Drupal 8 development started, we were publishing <a href="https://www.tag1.com/blog/tag1-looks-back-20-years-drupal-experiences/">Drupal Watchdog</a>, a print magazine that we shipped to subscribers around the world. I mention this because the magazine's lifespan, 2011 through 2016, almost exactly tracks the development of Drupal 8. We started it because the Drupal ecosystem felt like it could sustain anything. By the time we wound it down, the community had been through the most disruptive transition in the project's history.</p>
<p>Nat Catchpole, one of the Drupal 8 branch maintainers then and a Drupal core and Tag1 developer now, has said this to people in person for years but never in writing: &quot;[My] biggest regret of accepting the D8 maintainer position was that I didn't make a condition of acceptance deletion of the 8.x branch and starting again after a year or so of trying to stabilise and improve Drupal 7. If we'd done that we potentially could have developed the minor/major release cycle we eventually landed on for 8.x or at least started 8.x development on a better footing than immediately after another long major release cycle that had burned people out. I did try to stop the branch being opened in the first place when it was, but wasn't confident enough at the time to try to reverse that once it had happened.&quot;</p>
<p>Drupal 7 itself had come out of a three- to four-year release cycle with, as Nat puts it, more than a year of death march at the end, and Drupal 8 was branched before a Drupal 6 site could be safely updated to Drupal 7 (known bugs in the update path could lose data; in one, every comment body went missing). The release cycle Nat wished for is the one Drupal adopted. Since Drupal 8, new features have arrived in minor releases every six months, and a major release mostly removes code that was already marked for removal. That's why moving to Drupal 9, 10, and 11 meant upgrading a site, not rebuilding it.</p>
<p>In his keynote at DrupalCon Rotterdam 2026, Dries Buytaert named Drupal's reputation gap as the project's number one challenge: too many people are judging the Drupal of ten years ago.<sup><a href="https://www.tag1.com/#cite1">[1]</a></sup> Performance is one place the gap shows, and some of that reputation was earned in the years this post covers, when Drupal took on a heavy new architecture while PHP was still paying for the trades it made in the 90s.</p>
<p>Those trades (every request starting from scratch, and every value carrying its type at runtime, plus a reference count for strings, arrays, and objects) show up when we profile Drupal sites today. Spotting them takes the systems programmer's view described in <a href="https://www.tag1.com/blog/from-malloc-to-match-part-1/">Part 1</a> (looking one layer down, at the PHP engine, at how memory is laid out, and at what the CPU actually does), and working at that layer is one of the ways we find and fix Drupal performance problems. Performance work is how Tag1 started; in January 2008, a few months after we opened, we ran a webinar with MySQL AB on tuning MySQL for Drupal.<sup><a href="https://www.tag1.com/#cite2">[2]</a></sup> Drupal and PHP have done a lot about those trades since.</p>
<h2>The Java Cure</h2>
<p>Between 2010 and 2015, the PHP ecosystem went through a cultural transformation. Applications were getting larger and more complex, and the &quot;include and run&quot; model of the 90s couldn't keep up, so the community looked to Java Enterprise Edition for answers.</p>
<p>I should admit my bias up front. When my daughter was in single digits, someone mentioned in front of her that they programmed in Java, and she promptly volunteered, &quot;Oh, my dad doesn't like Java at all. He thinks it's horrible!&quot; She wasn't wrong. So I know how easy it is to turn the criticism of &quot;Java-fication&quot; into a cartoon, which is why I'll start with the very real problems it was solving. Drupal's hook system was limiting, the class registry was a hack, the lack of standardized autoloading meant every framework shipped its own autoloader, and without a per-project dependency manager you downloaded libraries by hand and committed them to version control. At the scale our larger clients were running, those things got in the way of building software you could maintain.</p>
<p>What arrived solved them: <a href="https://getcomposer.org/" target="_blank" rel="noopener noreferrer">Composer</a> for dependency management, the <a href="https://www.php-fig.org/psr/" target="_blank" rel="noopener noreferrer">PSR standards</a> for autoloading and coding style, and <a href="https://symfony.com/" target="_blank" rel="noopener noreferrer">Symfony</a> components for HTTP handling and routing. Composer mattered most, because it gave each project its own set of dependencies: it resolved version constraints, generated the autoloader, and made installs reproducible through a lock file. Drupal 8 embraced all of this. There was a push to get Drupal developers &quot;off the island&quot; and rejoin the wider PHP world, and Drupal 8 was eventually marketed as &quot;proudly found elsewhere.&quot;<sup><a href="https://www.tag1.com/#cite3">[3]</a></sup> The trouble was how much of it Drupal took on at once, and how often Symfony's assumptions about an application didn't match Drupal's.</p>
<h3>The Cost of Ceremony</h3>
<p>Dependency injection is a valid pattern. Decoupling your classes from their dependencies makes testing easier and makes it possible to swap implementations. Drupal 8 adopted a set of Symfony components rather than the full framework (HttpFoundation, HttpKernel, Routing, EventDispatcher, DependencyInjection, and ClassLoader),<sup><a href="https://www.tag1.com/#cite4">[4]</a></sup> and the DependencyInjection component brought a style where configuration became a primary programming activity. Developers wrote YAML files to define services, and each module's <code>mymodule.services.yml</code> became as important as its PHP code.</p>
<p>Tracking the execution flow became an exercise in indirection. A call to <code>\Drupal::service('mymodule.thing')-&gt;doSomething()</code> involved looking up the service ID in the container, checking whether the service had already been instantiated, building it from its definition if not, resolving all of its dependencies (and theirs), and finally calling the method. I remember stepping through Drupal 8 in a debugger for the first time and losing track of where I was after about twelve levels of indirection. In Drupal 7, you could grep for a function name and find it. In Drupal 8, you needed to understand the container, the service definitions, the compiler passes, and the event system before you could figure out what code actually ran when a page loaded.</p>
<p>The interface explosion was another symptom. Java's influence brought the convention of creating a <code>MyServiceInterface</code>, a <code>MyServiceBase</code> abstract class, a <code>MyService</code> concrete implementation, and sometimes a null implementation as well. For a language where duck typing had been the norm (if an object has the method you call, the call works, whatever class the object is), this felt like a straitjacket. Each of those four was one more file for the autoloader to find and the opcode cache (OPcache) to hold. Class names started reading like Java parodies: Drupal 8 shipped with a <code>ContainerAwareEventDispatcher</code>, a <code>ContainerFactoryPluginInterface</code>, and a <code>ContainerDerivativeDiscoveryDecorator</code>.<sup><a href="https://www.tag1.com/#cite5">[5]</a></sup></p>
<p>A &quot;Hello World&quot; module went from a three-line <code>.info</code> file and a few lines of <code>.module</code> code in Drupal 7 to a directory structure containing an info file, a routing YAML file, a Controller class, and often a service definition. Drupal 7's <code>hook_menu</code> mapped each path to a page callback function; in Drupal 8 the paths moved into <code>routing.yml</code> files and the callbacks became Controller and form classes. Access rules moved too, from a callback function on each path to requirements on each route, checked by separate services. <code>hook_init</code> was replaced by event subscribers listening to <code>KernelEvents::REQUEST</code>.<sup><a href="https://www.tag1.com/#cite6">[6]</a></sup></p>
<p>For the Drupal community, this was a hard transition. Developers who had been productive contributors for years suddenly needed to learn Symfony's component architecture, the service container, YAML configuration syntax, and object-oriented design patterns they'd never needed before. It was like learning a second framework from scratch. We watched experienced Drupal developers leave the ecosystem during this period, because the jump was too large and too abrupt, even for people who agreed with where it was headed.</p>
<p>At Tag1 we felt this directly. We were a Drupal consulting company, our clients wanted to move to Drupal 8 well before they could, and their in-house developers were retraining in the meantime. What had been a creative, accessible tool started to feel more like enterprise middleware, and for a while building with Drupal felt closer to a day job than something you did because you enjoyed it.</p>
<p>Symfony's HttpFoundation was approved for Drupal core in August 2011, a few months after the Drupal 8 branch opened, and Drupal 8.0.0 was <a href="https://www.drupal.org/project/drupal/releases/8.0.0" target="_blank" rel="noopener noreferrer">released on November 19, 2015</a>.<sup><a href="https://www.tag1.com/#cite7">[7]</a></sup> Drupal 7 had shipped in January 2011, so that was nearly five years without a new major release. By the time Drupal 8 was out, some agencies we knew had moved to other platforms rather than wait. The ones that stayed invested heavily in retraining, and they ended up with a more capable Drupal.</p>
<p>The complexity moved from implementation to architecture. We spent less time reading hook implementations and more time debugging the container. Bootstrapping a Drupal 8 page meant loading a lot of classes and a big compiled container just to return a string of HTML, and memory use went up, not down.</p>
<p>I go back and forth on whether the Java cure was a net improvement. For a small site that needed five modules, Drupal 7 was simpler, and we still support clients running it through <a href="https://d7es.tag1.com/">D7 Extended Support</a> nearly two years after its January 2025 end of life. For a large enterprise platform with dozens of developers and hundreds of integrations, the structure of Drupal 8 was necessary even if the weight of it was hard to love.</p>
<p>What has changed since is how much of that weight the community has paid down, and the compiled container is a good example. Because every PHP request starts from scratch, Drupal can't keep its service container in memory between requests, so it compiles the container once and caches the result for the requests that follow. The price comes due whenever the container has to be rebuilt, and installing a module rebuilds it. Nat recently wrote up what that meant for Drupal core's own tests. Until Drupal 11.2, an install did 50 or 60 container rebuilds; installing modules in batches brought that to 11 or 12 and took tens of seconds off every install, and Drupal 11.4 made the remaining ones more conditional, cutting a functional test install from 11 container rebuilds to 8, with work under way to reach 2.<sup><a href="https://www.tag1.com/#cite8">[8]</a></sup> Core's test suite installs Drupal thousands of times on every run, so the time saved on each install adds up. The drop in core's CI pipelines (the automated test runs on every proposed change), from about 55 minutes to between 5 and 7 minutes, came mainly from running tests in parallel, slowest first, and splitting up the slowest test classes, but the installer work is why the functional tests now reserve 80 CPUs instead of 128 and finish just as fast.</p>
<h3>Caching With Metadata</h3>
<p>Drupal 8's new architecture also made possible its biggest performance gain. If every request has to start from scratch, the next best thing is to skip as much of that work as possible, so Drupal 8 built caching into how each piece of a page is assembled. Each piece declares three things: cache tags, which name the data it depends on (saving a node invalidates only the pieces tagged with it); cache contexts, which say what it varies by, such as language or user permissions; and a max-age, which says how long it can be cached. With that metadata, Drupal can cache a page in pieces and leave the personalized parts as placeholders. The dynamic page cache keeps a copy of each page with its placeholders still in it, so on a cache hit a request mostly just has to fill in the placeholders. Drupal can fill them in before it sends the page, or send the page first and stream the personalized parts in afterwards, which is what BigPipe does. More and more, it fills them in before sending, using parts it has already rendered and saved in the render cache.<sup><a href="https://www.tag1.com/#cite9">[9]</a></sup></p>
<p>All of this depends on the metadata being accurate, because a cache tag that's broader than it needs to be throws away cached work that was still good. When we audited <a href="http://london.gov.uk/">London.gov.uk</a> for the Greater London Authority, many page requests took from several seconds to over a minute, and the slowest requests on a cold cache ran about 75,000 database queries, with menu rendering a large part of it.<sup><a href="https://www.tag1.com/#cite10">[10]</a></sup> The Group module was adding a list cache tag (one invalidated whenever any group relationship changes) to its access checks, so creating a group relationship for any node invalidated the cached menu (almost entirely links to nodes) and every page it sat on. Webform was loading every form on the site just to build its asset library definitions, and APCu (PHP's in-memory cache on each web server) needed tuning. Several of the fixes went upstream: core gained a menu block option to skip computing the active trail (which links lead to the current page) for menus the theme doesn't style, and the Webform and Group fixes were committed to those modules. After the first phase of that work, those slowest requests ran about 10,000 database queries on a cold cache instead of 75,000, and application response times improved by 87%.</p>
<h2>The Engine Room</h2>
<p>While the framework layer was getting heavier, the PHP internals team was doing something that made me pay attention to the language again in a way I hadn't since reading the PHP source in the early 2000s. They went after the engine itself: smaller structs, better cache locality, and less pointer chasing. The result shipped as <a href="https://www.php.net/releases/7_0_0.php" target="_blank" rel="noopener noreferrer">PHP 7.0</a> on December 3, 2015, a couple of weeks after Drupal 8.</p>
<p>The work started in early 2014 as an experimental branch at Zend called phpng (PHP Next Generation) and went public that spring. It was controversial because it touched nearly everything in the engine, but the benchmarks won the argument. In August 2014 the internals team voted 47 to 2 to merge it, and it became the foundation of PHP 7.<sup><a href="https://www.tag1.com/#cite11">[11]</a></sup></p>
<p>The version number has its own history. PHP 6 had been in development for years with the ambitious goal of native Unicode support throughout the engine. The plan was to represent every string internally as UTF-16 using the ICU library, which would have solved the endless character encoding headaches that plagued web developers. But the implementation was enormously complex, it required changes to virtually every string-handling function in the language, and it was slow and memory hungry. In March 2010 the project was abandoned. Some of the work developed alongside it, such as namespaces, had already shipped in PHP 5.3. When it came time to name the next major release in 2014, the internals team voted to skip 6 entirely, in part because books and articles about the never-released PHP 6 were already in circulation.<sup><a href="https://www.tag1.com/#cite12">[12]</a></sup></p>
<h3>Zval Compaction</h3>
<p>In PHP 5, the zval struct was 24 bytes on a 64-bit system:</p>
<pre class="language-c"><code class="language-c"><span class="token keyword">struct</span> <span class="token class-name">_zval_struct</span> <span class="token punctuation">{</span>
    zvalue_value value<span class="token punctuation">;</span>     <span class="token comment">/* 16 bytes */</span>
    zend_uint refcount__gc<span class="token punctuation">;</span>
    zend_uchar type<span class="token punctuation">;</span>
    zend_uchar is_ref__gc<span class="token punctuation">;</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span></code></pre>
<p>That number understates the cost. PHP 5 zvals were almost always allocated on the heap individually, and each one carried an extra garbage collection pointer plus the allocator's own overhead, which worked out to about 48 bytes per zval in practice.<sup><a href="https://www.tag1.com/#cite13">[13]</a></sup> The refcount was attached to the zval itself, so even temporary values paid for it, and the value field often pointed at yet another heap allocation, meaning accessing a variable involved double indirection and frequent CPU cache misses.</p>
<p>PHP 7 compacted the zval to 16 bytes. In its 7.0 form:</p>
<pre class="language-c"><code class="language-c"><span class="token keyword">struct</span> <span class="token class-name">_zval_struct</span> <span class="token punctuation">{</span>
    zend_value value<span class="token punctuation">;</span>           <span class="token comment">/* 8 bytes */</span>
    <span class="token keyword">union</span> <span class="token punctuation">{</span>
        <span class="token keyword">struct</span> <span class="token punctuation">{</span>
            zend_uchar type<span class="token punctuation">;</span>
            zend_uchar type_flags<span class="token punctuation">;</span>
            zend_uchar const_flags<span class="token punctuation">;</span>
            zend_uchar reserved<span class="token punctuation">;</span>
        <span class="token punctuation">}</span> v<span class="token punctuation">;</span>
        <span class="token class-name">uint32_t</span> type_info<span class="token punctuation">;</span>
    <span class="token punctuation">}</span> u1<span class="token punctuation">;</span>                       <span class="token comment">/* 4 bytes */</span>
    <span class="token keyword">union</span> <span class="token punctuation">{</span>
        <span class="token class-name">uint32_t</span> next<span class="token punctuation">;</span>          <span class="token comment">/* hash collision chain */</span>
        <span class="token class-name">uint32_t</span> cache_slot<span class="token punctuation">;</span>
        <span class="token comment">/* ...and other context-specific uses */</span>
    <span class="token punctuation">}</span> u2<span class="token punctuation">;</span>                       <span class="token comment">/* 4 bytes */</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span></code></pre>
<p>Integers and floats still live inside the zval, as they did in PHP 5, and <code>null</code>, <code>true</code>, and <code>false</code> are encoded in the type alone, but now none of them need a heap allocation or a refcount. The refcount moved out of the zval and into the thing being pointed to (strings, arrays, objects), so zvals themselves can live on the stack or be embedded contiguously in other structures. That <code>u2</code> union is a nice systems touch: it's the four bytes of padding the struct would have had anyway, reused for whatever the surrounding context needs, such as the collision chain in a hash table. Nearly every line of PHP touches a variable, so nearly every line got faster when the zvals for the most common types went from roughly 48 bytes in a separate allocation to 16 bytes stored inline, with one fewer pointer to chase. If you've ever profiled a hot path and found the CPU spending its time waiting on cache misses, you understand why this mattered.</p>
<h3>The HashTable Rewrite</h3>
<p>The <code>HashTable</code> got the same treatment. The PHP 5 <code>HashTable</code> allocated every bucket separately, and each bucket carried four pointers just for linking: two for a doubly-linked list that preserved insertion order and two for the collision chain. Iterating meant chasing pointers from one bucket to the next, with no guarantee that adjacent buckets were anywhere near each other in memory, and every bucket pointed to a zval that was itself a separate allocation.</p>
<p>The phpng rewrite put the whole table in one allocation: a hash index followed by a contiguous array of <code>Bucket</code> structs, with the zval embedded directly in each <code>Bucket</code>. In C++ terms, this was the equivalent of replacing <code>std::list</code> with <code>std::vector</code>. Iterating a PHP 7 array became a linear scan of contiguous memory, and the CPU prefetcher could finally do its job. A write-up of the new implementation measured the per-element cost dropping from 144 bytes in PHP 5.6 to 36 bytes in PHP 7 (32 for packed arrays).<sup><a href="https://www.tag1.com/#cite14">[14]</a></sup></p>
<p>The PHP 7.0 release announcement promised that PHP 7 would be &quot;up to twice as fast as PHP 5.6,&quot; and Zend measured Drupal 8 running 72% faster on PHP 7 than on 5.6, with WordPress executing roughly a quarter of the CPU instructions per request.<sup><a href="https://www.tag1.com/#cite15">[15]</a></sup> We were running load tests at Tag1 during this period for several clients, and the PHP 7 upgrade was one of those rare changes where the numbers just got better across the board without anyone touching a line of application code. The language was still paying for dynamic types and reference counting on nearly every operation, but the underlying data structures were no longer actively hostile to the hardware.</p>
<h3>The AST</h3>
<p>PHP 7 also introduced an Abstract Syntax Tree step between parsing and compilation, which the internals team approved in a 47 to 0 vote.<sup><a href="https://www.tag1.com/#cite16">[16]</a></sup> Previously the parser emitted opcodes directly, which meant the compiler couldn't see the full picture of what it was compiling. The AST decoupled parsing from code generation, which made smarter optimization passes possible, and together with the companion Uniform Variable Syntax RFC it gave PHP 7 consistent left-to-right rules for variable expressions. The static analyzers most PHP developers know, <a href="https://phpstan.org/" target="_blank" rel="noopener noreferrer">PHPStan</a> and <a href="https://psalm.dev/" target="_blank" rel="noopener noreferrer">Psalm</a>, build on the userland <a href="https://github.com/nikic/PHP-Parser" target="_blank" rel="noopener noreferrer">PHP-Parser</a> library (userland meaning written in PHP, not C) instead of the engine's own AST; <a href="https://github.com/phan/phan" target="_blank" rel="noopener noreferrer">Phan</a> is the one that reads the engine's AST directly, through the php-ast extension. Between them, these tools gave developers a measure of compile-time safety for a language that had never had it, catching type errors and dead code before the application ran.</p>
<h2>Modern PHP and Its Governance</h2>
<p>The <a href="https://www.php.net/ChangeLog-8.php" target="_blank" rel="noopener noreferrer">PHP 8.x</a> era, which started in November 2020, brought features developers had long used in other languages: union types, named arguments, attributes, and the <code>match</code> expression in 8.0; enums and fibers in 8.1; property hooks in 8.4; and a pipe operator in 8.5. PHP 8.6 is due on November 19, 2026, and brings partial function application.<sup><a href="https://www.tag1.com/#cite17">[17]</a></sup> I learned PHP from Drupal's code in 2002, on PHP 4, and the language today barely resembles it. Getting those features in took years, and sometimes several failed votes.</p>
<h3>The RFC Process</h3>
<p>PHP evolves through RFCs (Requests for Comments), and since 2019 every RFC's main vote has needed a two-thirds majority to pass (language changes already did).<sup><a href="https://www.tag1.com/#cite18">[18]</a></sup> Voting is open to people with <a href="http://php.net/">php.net</a> accounts who have contributed to the project, plus a few community representatives, and in practice the voting pool is modest. This process has produced some excellent features and some baffling outcomes. There is no BDFL (Benevolent Dictator for Life) and no corporate owner making unilateral decisions. PHP stopped being Rasmus Lerdorf's project alone in the PHP 3 days, when he and the two developers who rewrote its parser decided to build it together, and it has been a group effort ever since (he still contributes, including a fix to the opcode cache as recently as March 2026).<sup><a href="https://www.tag1.com/#cite19">[19]</a></sup> The upside of deciding by vote is real community ownership; the downside is that a motivated minority can block a controversial feature, and &quot;no&quot; voters don't always explain their reasoning, which makes iteration difficult.</p>
<p>Property hooks, which let a class run its own code when a property is read or written, are a good example of how long things can take. The <a href="https://wiki.php.net/rfc/propertygetsetsyntax" target="_blank" rel="noopener noreferrer">first draft of a property accessor syntax</a> was written in 2009. Its successor, the <a href="https://wiki.php.net/rfc/propertygetsetsyntax-v1.2" target="_blank" rel="noopener noreferrer">accessors RFC</a>, came to a vote in January 2013 and failed 34 to 22, short of two thirds. A decade later, in January 2023, the related <a href="https://wiki.php.net/rfc/asymmetric-visibility" target="_blank" rel="noopener noreferrer">asymmetric visibility RFC</a> (letting anyone read a property while only the class itself can change it) failed 14 to 12. Then in April 2024, <a href="https://wiki.php.net/rfc/property-hooks" target="_blank" rel="noopener noreferrer">property hooks passed</a> 42 to 2, a <a href="https://wiki.php.net/rfc/asymmetric-visibility-v2" target="_blank" rel="noopener noreferrer">revised asymmetric visibility RFC</a> passed 24 to 7 that August, and both <a href="https://www.php.net/releases/8.4/en.php" target="_blank" rel="noopener noreferrer">shipped in PHP 8.4</a> that November.<sup><a href="https://www.tag1.com/#cite20">[20]</a></sup></p>
<p>The <a href="https://thephp.foundation/" target="_blank" rel="noopener noreferrer">PHP Foundation</a>, founded in November 2021, changed how PHP development is funded. Nikita Popov, who had been working on PHP full time at JetBrains, decided to focus on LLVM instead (he is now LLVM's lead maintainer), and his departure showed how much of the project depended on a handful of people. JetBrains, Automattic, Laravel, Acquia, Zend, Symfony, and others set up the Foundation to pay people to work on PHP internals, and by the start of 2026 it was funding eleven developers.<sup><a href="https://www.tag1.com/#cite21">[21]</a></sup></p>
<h3>The Generics Question</h3>
<p>The feature most obviously missing from modern PHP is generics. The first <a href="https://wiki.php.net/rfc/generics" target="_blank" rel="noopener noreferrer">generics RFC</a> was written in 2016, targeting PHP 7.1, and never came to a vote. A nearly complete experimental implementation in 2020 and 2021 ran into fundamental problems: PHP checks types at runtime, so generics the runtime actually enforced would mean checking generic parameters on every call, and useful type inference (working out a variable's type without being told) is hard when the compiler only ever sees one file at a time. The prototype stalled.</p>
<p>The community has spent years working around this. PHPStan and Psalm read generic types written into docblocks (structured comments above a function or class), so the analyzer checks them even though the runtime never does. But the language itself can't express something as basic as &quot;this is a collection that only contains User objects&quot; in a way the runtime enforces.</p>
<p>The Foundation has kept pushing. It published a survey of the options in 2024, and in 2025 it floated generics checked only at compile time, limited to interfaces and abstract classes, where PHP can check them once when it loads a class rather than on every call.<sup><a href="https://www.tag1.com/#cite22">[22]</a></sup> That design trades full coverage for a version the engine can afford. Then in June 2026 a different proposal, bound-erased generics, was voted down 19 to 7. It would have let code declare generic types while the runtime treated each type parameter as the bound it declared (for example, that <code>T</code> implements <code>Countable</code>), leaving the rest to static analyzers. Opponents worried that syntax the engine doesn't enforce would weaken PHP's type guarantees, and that code written against it would break if enforced generics arrived later.<sup><a href="https://www.tag1.com/#cite23">[23]</a></sup> PHP still has no generics.</p>
<p>PHP has gotten fast, but the way it runs code limits which features it can add. Rust, by contrast, handles generics through monomorphization at compile time: the compiler generates specialized code for each concrete type, with zero runtime cost (the price is paid in build times instead, and the Rust project's own annual survey calls slow compilation a perennial concern of its users).<sup><a href="https://www.tag1.com/#cite24">[24]</a></sup> PHP settles most types only when the code runs, so it has nothing to specialize ahead of time.</p>
<h3>The JIT</h3>
<p><a href="https://www.php.net/releases/8.0/en.php" target="_blank" rel="noopener noreferrer">PHP 8.0</a>'s JIT compiler ran into the limits of web workloads. It built on OPcache and used DynASM (the code generator from LuaJIT) to turn Zend opcodes into native machine code, with two modes: a function JIT and a tracing JIT that watches for hot code paths and compiles those. On paper, that should make PHP much faster.</p>
<p>In practice, Drupal, WordPress, and Laravel spend most of their time waiting on database queries, cache calls, and the network. The PHP code in between is glue, and the functions it relies on (<code>json_encode()</code>, <code>str_replace()</code>, <code>PDOStatement::execute()</code>) are already compiled C. The exception is a cold cache, right after a deploy or a cache clear, when Drupal does real CPU work: processing YAML files and the attributes in its PHP code, compiling Twig templates, and building combined CSS and JavaScript files, then merging all of that into large metadata arrays that have to be written to the cache. Each result is cached as soon as it's built, so few requests pay that cost, though the ones that do are slow.<sup><a href="https://www.tag1.com/#cite8">[8]</a></sup> Even though the JIT keeps its compiled code in OPcache shared memory and reuses it from one request to the next, a typical page gives it very little CPU-bound PHP to speed up. The JIT RFC was upfront about this, reporting WordPress going from 315 to 326 requests per second, about 3.5%, and the 8.0 release announcement said typical application performance was &quot;on par with PHP 7.4.&quot;<sup><a href="https://www.tag1.com/#cite25">[25]</a></sup> PHP 8.4 replaced the original implementation with a new JIT, which put the x86 and ARM back ends behind one shared code generator, but the JIT still isn't enabled by default.<sup><a href="https://www.tag1.com/#cite26">[26]</a></sup></p>
<p>The JIT shines for computational tasks: math-heavy PHP code, parsers, image processing. The same RFC measured more than 4x on a Mandelbrot benchmark. But that's not what most PHP developers build, and it's not what most Drupal sites do.</p>
<h3>Features That Landed</h3>
<p>PHP 8.x did more for the developer through smaller, more targeted features.</p>
<p>The <code>match</code> expression in 8.0 brought strict comparison and expression-based matching. PHP 8.0 also fixed the worst of loose comparison (<code>0 == &quot;foo&quot;</code> is finally false), but <code>switch</code> compares loosely, so <code>&quot;1e3&quot;</code> still matches <code>case &quot;1000&quot;:</code> because both look like the number 1000. <code>match</code> uses <code>===</code> and doesn't have that problem.<sup><a href="https://www.tag1.com/#cite27">[27]</a></sup> Enums arrived in <a href="https://www.php.net/releases/8.1/en.php" target="_blank" rel="noopener noreferrer">8.1</a>, giving the language proper enumerated types whose cases are objects. They're limited compared to Rust's enums, where each case can carry its own data, but they replaced a generation of class constants pretending to be enums. Real pattern matching (testing a value's shape and pulling it apart in one step) is the subject of an <a href="https://wiki.php.net/rfc/pattern-matching" target="_blank" rel="noopener noreferrer">RFC</a> under discussion since December 2025, but it missed the PHP 8.6 feature freeze on September 22, 2026.<sup><a href="https://www.tag1.com/#cite17">[17]</a></sup></p>
<p>Attributes in 8.0 gave PHP a native replacement for the docblock annotation hack that Drupal 8 and Symfony relied on. Previously, metadata lived in comments (<code>/** @Annotation */</code>) that libraries like Doctrine Annotations pulled out through reflection and ran through their own regex-driven tokenizer and parser, then cached. That this worked at all says a lot about PHP developers' willingness to abuse any available mechanism. Attributes moved metadata into native syntax that the engine parses and stores with the compiled code, where reflection can read it without anyone parsing comments.</p>
<p>Fibers, which arrived in 8.1 alongside enums, are PHP's building block for asynchronous code (code that starts something slow, like a database query, and does other work while it waits for the answer). A fiber lets a function pause partway through and resume later, with the program itself deciding when to switch. The limitation is that the standard library is still blocking. A file read, a database query through PDO, or almost any other I/O call stops the whole process until it returns, so no other fiber can run in the meantime. True async requires an event loop, and PHP doesn't ship one. Libraries like <a href="https://revolt.run/" target="_blank" rel="noopener noreferrer">Revolt</a> and <a href="https://amphp.org/" target="_blank" rel="noopener noreferrer">Amp</a> fill the gap, but the ecosystem hasn't broadly adopted them. A &quot;True Async&quot; RFC that would have brought coroutines and a scheduler into the language was withdrawn in July 2026, and a follow-up RFC proposing the engine-level scheduler core it would have been built on is still under discussion.<sup><a href="https://www.tag1.com/#cite28">[28]</a></sup></p>
<p>The async gap shows how deeply the shared-nothing model (every request starts from scratch and shares nothing with the others) is embedded in the language. In Go, the runtime includes a scheduler and goroutines are a first-class primitive. In Node.js, the event loop is the runtime. In Rust, the async runtime (typically Tokio) is a library, but the language's <code>async</code>/<code>await</code> syntax and the <code>Future</code> trait are built in. In PHP, fibers provide the mechanism for pausing and resuming execution, but everything around them (the event loop, the async I/O, the scheduler) has to come from userland libraries.</p>
<p>Fibers themselves are well engineered and do exactly what they were designed to do, and Drupal has put them to good use. But PHP's ecosystem was built over 30 years of synchronous request-response assumptions, and it can't broadly adopt async patterns until the standard library itself becomes non-blocking, a change of such magnitude that it may never fully happen. Projects like <a href="https://www.swoole.com/" target="_blank" rel="noopener noreferrer">Swoole</a> and <a href="https://frankenphp.dev/" target="_blank" rel="noopener noreferrer">FrankenPHP</a> take a different approach: they replace PHP-FPM (the process manager that runs PHP behind a web server) and handle concurrency in the server layer. Swoole is a C extension that runs its own long-running coroutine server and swaps PHP's blocking functions for coroutine-aware versions; FrankenPHP embeds PHP in the Go-based Caddy web server and keeps PHP synchronous inside Go workers. Both are pragmatic, but they move concurrency outside the language.</p>
<p>I started learning Rust in 2020, and my first project was <a href="https://github.com/tag1consulting/goose" target="_blank" rel="noopener noreferrer">Goose</a>, a load testing tool written in Rust and inspired by Locust, the Python framework. We'd been using Locust for client load tests at Tag1, and early on, before we'd even optimized the code, Goose ended up generating at least eleven times as much traffic as Locust per CPU core.<sup><a href="https://www.tag1.com/#cite29">[29]</a></sup> The bigger thing for me was how Rust's async model worked. After years inside PHP's concurrency constraints, it felt like someone had finally gotten the tradeoffs right: real concurrency with memory safety and zero-cost abstractions. It changed how I think about PHP's limitations, and Goose is now the primary tool we use to load test Drupal sites.</p>
<h2>The Full Circle</h2>
<p>I came to Drupal a few months before 4.0.0, and looking back from 11, its arc mirrors PHP's own: procedural hooks in Drupal 4 through 7, the Symfony-driven enterprise architecture of Drupal 8 and 9, and the gradual simplification in Drupal 10 and 11 as PHP itself provided better tools.</p>
<p><a href="https://www.drupal.org/project/drupal/releases/9.0.0" target="_blank" rel="noopener noreferrer">Drupal 9</a>, released on June 3, 2020, was deliberately undramatic: Drupal 8 with deprecated code removed and dependencies updated. The community had learned from the Drupal 7-to-8 chasm that major version upgrades needed to be manageable, and for most sites the upgrade from 8 to 9 meant running Composer and fixing whatever Drupal 8 had already warned them about. After the long Drupal 8 cycle, this was a relief.</p>
<p><a href="https://www.drupal.org/project/drupal/releases/10.0.0" target="_blank" rel="noopener noreferrer">Drupal 10</a>, released on December 15, 2022, continued the pattern. It required PHP 8.1, meaning the codebase could start using readonly properties, enums, fibers, and intersection types, and it moved to Symfony 6 and CKEditor 5. Drupal 10.2 then began replacing docblock annotations with attributes for plugin discovery, and added fiber support to the renderer and to BigPipe.<sup><a href="https://www.tag1.com/#cite30">[30]</a></sup></p>
<p><a href="https://www.drupal.org/project/drupal/releases/11.0.0" target="_blank" rel="noopener noreferrer">Drupal 11</a>, released on August 2, 2024, moved to PHP 8.3 as its minimum and Symfony 7 underneath, and its 11.1 release that December brought the biggest change to how you write a hook since Drupal 8:</p>
<p><strong>Drupal 7:</strong> You defined a function with a magic name, and the framework found it by building function names from strings and checking whether they existed.</p>
<pre class="language-php"><code class="language-php"><span class="token keyword">function</span> <span class="token function-definition function">mymodule_node_insert</span><span class="token punctuation">(</span><span class="token variable">$node</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// Your code here</span>
<span class="token punctuation">}</span></code></pre>
<p><strong>Drupal 8:</strong> For anything the old hooks couldn't express, you created an EventSubscriber class implementing an interface, registered it as a service in YAML, and defined which events it listened to. A single hook's worth of functionality required a class, a YAML entry, and knowledge of the Symfony event system.</p>
<p><strong>Drupal 11.1 and later:</strong> You put a method in a class under your module's <code>src/Hook</code> directory and mark it with an attribute, and the framework discovers it when it builds the container.<sup><a href="https://www.tag1.com/#cite31">[31]</a></sup></p>
<pre class="language-php"><code class="language-php"><span class="token keyword">namespace</span> <span class="token package">Drupal<span class="token punctuation">\</span>mymodule<span class="token punctuation">\</span>Hook</span><span class="token punctuation">;</span>

<span class="token keyword">use</span> <span class="token package">Drupal<span class="token punctuation">\</span>Core<span class="token punctuation">\</span>Hook<span class="token punctuation">\</span>Attribute<span class="token punctuation">\</span>Hook</span><span class="token punctuation">;</span>
<span class="token keyword">use</span> <span class="token package">Drupal<span class="token punctuation">\</span>node<span class="token punctuation">\</span>NodeInterface</span><span class="token punctuation">;</span>

<span class="token keyword">class</span> <span class="token class-name-definition class-name">MymoduleHooks</span> <span class="token punctuation">{</span>
    <span class="token attribute"><span class="token delimiter punctuation">#[</span><span class="token attribute-content"><span class="token attribute-class-name class-name">Hook</span><span class="token punctuation">(</span><span class="token string single-quoted-string">'node_insert'</span><span class="token punctuation">)</span></span><span class="token delimiter punctuation">]</span></span>
    <span class="token keyword">public</span> <span class="token keyword">function</span> <span class="token function-definition function">nodeInsert</span><span class="token punctuation">(</span><span class="token class-name type-declaration">NodeInterface</span> <span class="token variable">$node</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword return-type">void</span> <span class="token punctuation">{</span>
        <span class="token comment">// Your code here</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span></code></pre>
<p>That brings us back around. You're once again labeling a function with what it does, but now it's backed by the engine's native attribute system instead of string concatenation and <code>function_exists()</code> checks. The method is type-hinted, and the hook class is an ordinary autowired service: the container reads its constructor's type hints and passes in the services the class asks for.</p>
<p>Drupal 7's hooks were simple but fragile, and Drupal 8's event subscribers were solid but verbose. Drupal 11's attribute-based hooks are simple and solid, because the language itself now provides machinery that the framework used to build by hand. The framework still carries weight from the Symfony layer and still loads a lot of classes to handle a request, but the developer experience is finally converging on something that's both structured and humane. A new contributor can look at an attribute-based hook, understand what it does, and write one without reading a chapter on the Symfony event system first.</p>
<p>Drupal is also getting faster again, and PHP's newer features are part of the reason. Drupal 11.3, released in December 2025, used fibers and rendered more of each page in placeholders so that database and cache operations could be combined, cutting both by roughly a third on a cold cache. Nat called it the biggest performance improvement in a decade. Core's automated performance tests, which run on Gander (the framework we built with the Google Chrome team), have driven many of Drupal's recent gains: they show when a change makes Drupal faster, sometimes point to the cause of a problem, and keep those gains from slipping back.<sup><a href="https://www.tag1.com/#cite32">[32]</a></sup> Drupal 11.4, released in July 2026, halves database queries compared to 11.3 across a wide range of requests, and on a completely cold cache it needs just over a third of the database and cache lookups of Drupal 11.0. Nat's DrupalCon Rotterdam session on the work explains how it was done.<sup><a href="https://www.tag1.com/#cite33">[33]</a></sup></p>
<p>Drupal 12 is in beta now and scheduled for release the week of December 7, 2026. It will require PHP 8.5 and Symfony 8, and Drupal 10 reaches end of life that same week. Drupal's policy is to require the newest stable PHP release when a major version reaches its first beta. PHP 8.5 gets security fixes through the end of 2029.<sup><a href="https://www.tag1.com/#cite34">[34]</a></sup></p>
<h2>What PHP Got Right</h2>
<p>Rasmus started what became PHP in 1994 as a set of C tools for his personal home page. Today PHP can be strictly typed (if you ask it to be), it has a JIT, enums, fibers, attributes, and property hooks, and according to W3Techs it runs on 69.8% of websites whose server-side language is known.<sup><a href="https://www.tag1.com/#cite35">[35]</a></sup> The biggest performance jump came from PHP 5.6 to PHP 7, achieved mostly through the kind of data structure work that systems programmers respect.</p>
<p>PHP survived its own worst tendencies. <code>register_globals</code> was eventually turned off by default and then removed in PHP 5.4. The <code>mysql_*</code> functions that taught a generation of developers to write SQL injection vulnerabilities were deprecated in 5.5 and removed in 7.0, leaving PDO and mysqli with prepared statements.<sup><a href="https://www.tag1.com/#cite36">[36]</a></sup> The chaos of every framework shipping its own autoloader, and of libraries downloaded by hand, gave way to Composer and PSR standards. The language governance, messy as it can be (property hooks took fifteen years from first draft to release), has consistently moved in the direction of safety and rigor.</p>
<p>The community deserves credit too. PHP developers are often dismissed by people in other ecosystems, but they produced WordPress, Drupal, Laravel, Symfony, MediaWiki, and much of the rest of the web's content layer. When something is broken, people build workarounds, and the best of them become standard practice. PHPStan and Psalm brought static analysis to a dynamic language because developers wanted type safety and weren't willing to wait for the runtime to provide it. Composer exists because PEAR, PHP's older package installer, put libraries in one system-wide location by default and made it awkward to give each project its own dependencies.</p>
<p>The shared-nothing, request-response model remains PHP's core strength and its core limitation. Every request starts fresh, loads the application, processes the request, returns the response, and throws everything away. There's no shared state to corrupt, no memory leaks that accumulate over hours of uptime, and no concurrent access bugs to debug at 3 AM. But there's also no way to hold a connection pool, maintain a websocket, or handle concurrent streams without bolting on something that works against the fundamental architecture.</p>
<p>Swoole, <a href="https://roadrunner.dev/" target="_blank" rel="noopener noreferrer">RoadRunner</a> (Temporal, which runs its PHP workers under RoadRunner, <a href="https://www.tag1.com/blog/temporal-integration-with-drupal/">recently gained a Drupal integration Károly Négyesi wrote for a Tag1 client</a>), and FrankenPHP are pushing PHP into long-running process territory (Laravel Octane will run on any of them). In 2025, FrankenPHP moved under the PHP Foundation, so the organization that funds much of PHP's core development now backs long-running PHP too. FrankenPHP remains a separate project from PHP itself, though. When it moved, the Foundation told the internals mailing list there were no plans to merge it into PHP the way PHP-FPM is, and that doing so would take an RFC. FrankenPHP's developers contribute changes upstream, such as one merged in July 2026 that makes PHP's command line available to programs that embed PHP, as FrankenPHP does.<sup><a href="https://www.tag1.com/#cite37">[37]</a></sup> Swoole, RoadRunner, and FrankenPHP are all still swimming against the current of how the language and most of its ecosystem were designed.</p>
<p>For a C programmer looking at PHP in 2026, the language is tolerable in a way it wasn't in 2004. The engine is well optimized by people who clearly understand cache lines and struct packing, and the frameworks still carry real weight, though Drupal has spent its last few releases measuring that weight and taking it out.</p>
<p>Whether you should use it depends on what you're building. PHP is excellent for content-driven web applications, request-response APIs, and anything where the shared-nothing model is an advantage rather than a limitation. It's the wrong tool for high-concurrency services, real-time systems, or infrastructure that needs deterministic performance. The language knows this, and the community mostly knows this. The arguments happen at the boundaries, where an application starts as a content site and evolves into something that needs persistent connections or sub-millisecond response times.</p>
<p>Drupal turned 25 in January.<sup><a href="https://www.tag1.com/#cite38">[38]</a></sup> I've been part of the community since 2002, long enough to have complained about every major architectural decision and then watched most of them work out in the end. The project survived its own ambition, the loss of a lot of contributors, a release cycle of nearly five years, and the kind of technical debt that would have killed a less persistent community, and it came out the other side with a modern, typed, attribute-driven architecture running on an engine that a C programmer can respect.</p>
<p>Rotterdam has a saying, &quot;Niet lullen maar poetsen&quot; (stop talking, start working), and in his keynote Dries argued that Drupal has been very good at the working part, and now needs to talk louder about what is working.<sup><a href="https://www.tag1.com/#cite1">[1]</a></sup> On performance, there's a lot to talk about. When Rasmus profiled Drupal at the OSCMS Summit in 2007, more than half of each request (as I remember it) went to loading Drupal before it could start on the page. Since then PHP 7 rebuilt the engine around the hardware, Drupal 8 built caching into how every piece of a page is rendered, and core now measures itself and uses the numbers to take that cost back out.</p>
<p>If you run a Drupal site today, the 11.3 and 11.4 gains ship with Drupal, so staying current is how you get them, and with Drupal 12 requiring PHP 8.5 a PHP upgrade is coming either way.<sup><a href="https://www.tag1.com/#cite34">[34]</a></sup> Look at what your pages cost on a cold cache and not only a warm one: it affects a small share of requests, but it can make a big difference for new visitors and for how responsive a site feels after a deploy or a cache clear.<sup><a href="https://www.tag1.com/#cite8">[8]</a></sup> When a page is slow, measure it before guessing. When the fix belongs upstream, send it there, the way the <a href="http://london.gov.uk/">London.gov.uk</a> fixes went into core, Webform, and the Group module.</p>
<h2>References</h2>
<p><a id="cite1"></a>[1] <a href="http://drupal.org/">Drupal.org</a>, <a href="https://www.drupal.org/blog/driesnote-rotterdam" target="_blank" rel="noopener noreferrer">&quot;DriesNote Rotterdam: Drupal is light-years ahead of its reputation&quot;</a>, September 29, 2026.</p>
<p><a id="cite2"></a>[2] Tag1, <a href="https://www.tag1.com/blog/achieving-optimal-mysql-performance-drupal/">&quot;Achieving Optimal MySQL Performance for Drupal&quot;</a>, January 2008.</p>
<p><a id="cite3"></a>[3] Larry Garfield, <a href="https://www.garfieldtech.com/blog/off-the-island-2013" target="_blank" rel="noopener noreferrer">&quot;Getting off the island in 2013&quot;</a>; <a href="http://drupal.org/">Drupal.org</a>, <a href="https://www.drupal.org/8/standards" target="_blank" rel="noopener noreferrer">&quot;Proudly found elsewhere&quot;</a>.</p>
<p><a id="cite4"></a>[4] Fabien Potencier, <a href="https://symfony.com/blog/symfony2-meets-drupal-8" target="_blank" rel="noopener noreferrer">&quot;Symfony2 meets Drupal 8&quot;</a>, Symfony blog, March 22, 2012.</p>
<p><a id="cite5"></a>[5] <a href="http://api.drupal.org/">api.drupal.org</a>: <a href="https://api.drupal.org/api/drupal/core!lib!Drupal!Component!EventDispatcher!ContainerAwareEventDispatcher.php/class/ContainerAwareEventDispatcher/8.9.x" target="_blank" rel="noopener noreferrer">ContainerAwareEventDispatcher</a>, <a href="https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Plugin!ContainerFactoryPluginInterface.php/interface/ContainerFactoryPluginInterface/8.9.x" target="_blank" rel="noopener noreferrer">ContainerFactoryPluginInterface</a>, <a href="https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Plugin!Discovery!ContainerDerivativeDiscoveryDecorator.php/class/ContainerDerivativeDiscoveryDecorator/8.9.x" target="_blank" rel="noopener noreferrer">ContainerDerivativeDiscoveryDecorator</a>.</p>
<p><a id="cite6"></a>[6] Drupal change records: <a href="https://www.drupal.org/node/1800686" target="_blank" rel="noopener noreferrer">hook_menu replaced by routing and related systems</a>; <a href="https://www.drupal.org/node/2013014" target="_blank" rel="noopener noreferrer">hook_init() removed</a>. Drupal 7 module requirements: <a href="https://www.drupal.org/docs/7/creating-custom-modules/writing-module-info-files-drupal-7x" target="_blank" rel="noopener noreferrer">Writing .info files</a>; <a href="https://www.drupal.org/node/1793520" target="_blank" rel="noopener noreferrer">#1793520, &quot;Add access control mechanism for new router system&quot;</a>.</p>
<p><a id="cite7"></a>[7] Drupal issue <a href="https://www.drupal.org/project/drupal/issues/1178246" target="_blank" rel="noopener noreferrer">#1178246, &quot;Add Symfony2 HttpFoundation library to core&quot;</a> (August 30, 2011 comment recording Dries's approval) and change record <a href="https://www.drupal.org/node/1320400" target="_blank" rel="noopener noreferrer">1320400</a> (October 2011); <a href="https://www.drupal.org/project/drupal/releases/8.0.0" target="_blank" rel="noopener noreferrer">Drupal 8.0.0 release</a>.</p>
<p><a id="cite8"></a>[8] Nathaniel Catchpole, <a href="https://www.tag1.com/blog/optimizing-drupal-core/">&quot;Optimizing Drupal Core CI&quot;</a>, Tag1, September 17, 2026; Drupal issue <a href="https://www.drupal.org/project/drupal/issues/3571994" target="_blank" rel="noopener noreferrer">#3571994, &quot;Reduce container rebuilds in functional tests&quot;</a> (committed March 11, 2026).</p>
<p><a id="cite9"></a>[9] Dries Buytaert, <a href="https://dri.es/making-drupal-8-fly" target="_blank" rel="noopener noreferrer">&quot;Making Drupal 8 fly&quot;</a>, February 19, 2015; <a href="http://drupal.org/">Drupal.org</a> documentation, <a href="https://www.drupal.org/docs/drupal-apis/cache-api" target="_blank" rel="noopener noreferrer">Cache API</a> and <a href="https://www.drupal.org/docs/drupal-apis/cache-api/cache-tags" target="_blank" rel="noopener noreferrer">Cache tags</a>.</p>
<p><a id="cite10"></a>[10] Tag1, <a href="https://www.tag1.com/our-work/gla/">&quot;Greater London Authority&quot;</a> case study; Drupal issue <a href="https://www.drupal.org/project/drupal/issues/3529464" target="_blank" rel="noopener noreferrer">#3529464, &quot;Make menu trail behaviour in SystemMenuBlock optional&quot;</a> (committed February 2026); Webform issue <a href="https://www.drupal.org/project/webform/issues/3497954" target="_blank" rel="noopener noreferrer">#3497954, &quot;Excessive memory use when building dynamic library definitions&quot;</a> (committed September 2025); Group issue <a href="https://www.drupal.org/project/group/issues/3538509" target="_blank" rel="noopener noreferrer">#3538509, &quot;Try to remove group_relationship list cache tags in group_entity_access()&quot;</a> (committed July 2026).</p>
<p><a id="cite11"></a>[11] <a href="https://wiki.php.net/rfc/phpng" target="_blank" rel="noopener noreferrer">phpng RFC</a> (&quot;a team of developers led by Dmitry Stogov&quot;); &quot;Move phpng to master&quot; RFC, vote closed August 14, 2014, 47 to 2; <a href="https://www.php.net/releases/7_0_0.php" target="_blank" rel="noopener noreferrer">PHP 7.0.0 release announcement</a>.</p>
<p><a id="cite12"></a>[12] Johannes Schlüter, &quot;Future of PHP 6,&quot; March 12, 2010; <a href="https://wiki.php.net/rfc/php6" target="_blank" rel="noopener noreferrer">Name of Next Release of PHP RFC</a> (2014).</p>
<p><a id="cite13"></a>[13] Nikita Popov, <a href="https://www.npopov.com/2015/05/05/Internal-value-representation-in-PHP-7-part-1.html" target="_blank" rel="noopener noreferrer">&quot;Internal value representation in PHP 7, part 1&quot;</a>, May 2015.</p>
<p><a id="cite14"></a>[14] Nikita Popov, <a href="https://www.npopov.com/2014/12/22/PHPs-new-hashtable-implementation.html" target="_blank" rel="noopener noreferrer">&quot;PHP's new hashtable implementation&quot;</a>, December 2014.</p>
<p><a id="cite15"></a>[15] <a href="https://www.php.net/releases/7_0_0.php" target="_blank" rel="noopener noreferrer">PHP 7.0.0 release announcement</a>; Zend Technologies, PHP 7 performance infographic (2015). The phpng RFC itself cited gains of 20% to 110% on WordPress, Drupal and SugarCRM.</p>
<p><a id="cite16"></a>[16] Nikita Popov, <a href="https://wiki.php.net/rfc/abstract_syntax_tree" target="_blank" rel="noopener noreferrer">Abstract Syntax Tree RFC</a>, 2014 (vote held August 18 to 25, 2014, accepted 47 to 0); Nikita Popov, <a href="https://wiki.php.net/rfc/uniform_variable_syntax" target="_blank" rel="noopener noreferrer">Uniform Variable Syntax RFC</a>, 2014.</p>
<p><a id="cite17"></a>[17] <a href="https://www.php.net/releases/8.5/en.php" target="_blank" rel="noopener noreferrer">PHP 8.5 release announcement</a>, November 20, 2025; <a href="https://wiki.php.net/todo/php86" target="_blank" rel="noopener noreferrer">PHP 8.6 release schedule</a>; <a href="https://wiki.php.net/rfc/partial_function_application_v2" target="_blank" rel="noopener noreferrer">Partial Function Application v2 RFC</a>.</p>
<p><a id="cite18"></a>[18] <a href="https://wiki.php.net/rfc/abolish-narrow-margins" target="_blank" rel="noopener noreferrer">Abolish Narrow Margins RFC</a>, drafted 2016, accepted February 2019; <a href="https://wiki.php.net/rfc/voting" target="_blank" rel="noopener noreferrer">Voting process RFC</a>.</p>
<p><a id="cite19"></a>[19] The PHP Documentation Group, <a href="https://www.php.net/manual/en/history.php.php" target="_blank" rel="noopener noreferrer">&quot;History of PHP&quot;</a>, <a href="http://php.net/">php.net</a> (&quot;Andi, Rasmus, and Zeev decided to collaborate in the development of a new, independent programming language&quot;); Rasmus Lerdorf, php-src commit <a href="https://github.com/php/php-src/commit/1a79ea47c5c92b329bcffbb28b655a42d463218e" target="_blank" rel="noopener noreferrer">&quot;Fix GH-21411: opcache_compile_file() fails to early-bind classes without parents&quot;</a>, March 19, 2026.</p>
<p><a id="cite20"></a>[20] <a href="https://wiki.php.net/rfc/propertygetsetsyntax" target="_blank" rel="noopener noreferrer">Property get/set syntax draft</a> (2009); <a href="https://wiki.php.net/rfc/propertygetsetsyntax-v1.2" target="_blank" rel="noopener noreferrer">Accessors RFC v1.2</a> (2013); <a href="https://wiki.php.net/rfc/asymmetric-visibility" target="_blank" rel="noopener noreferrer">Asymmetric visibility RFC</a> (2023); <a href="https://wiki.php.net/rfc/property-hooks" target="_blank" rel="noopener noreferrer">Property hooks RFC</a> (2024); <a href="https://wiki.php.net/rfc/asymmetric-visibility-v2" target="_blank" rel="noopener noreferrer">Asymmetric visibility v2 RFC</a> (2024) and its <a href="https://www.mail-archive.com/internals@lists.php.net/msg116939.html" target="_blank" rel="noopener noreferrer">vote result</a>, August 10, 2024; PHP Foundation, <a href="https://thephp.foundation/blog/2024/11/01/how-hooks-happened/" target="_blank" rel="noopener noreferrer">&quot;PHP 8.4: How Property Hooks Happened&quot;</a>; <a href="https://www.php.net/releases/8.4/en.php" target="_blank" rel="noopener noreferrer">PHP 8.4 release announcement</a>.</p>
<p><a id="cite21"></a>[21] JetBrains, <a href="https://blog.jetbrains.com/phpstorm/2021/11/the-php-foundation/" target="_blank" rel="noopener noreferrer">&quot;The New Life of PHP: The PHP Foundation&quot;</a>, November 22, 2021; Phoronix, <a href="https://www.phoronix.com/news/LLVM-Lead-Maintainer-Popov" target="_blank" rel="noopener noreferrer">&quot;Red Hat Engineer Nikita Popov Now The Lead Maintainer For LLVM&quot;</a>, October 2024; PHP Foundation, <a href="https://thephp.foundation/blog/2026/05/27/impact-and-transparency-report-2025/" target="_blank" rel="noopener noreferrer">Impact and Transparency Report 2025</a>.</p>
<p><a id="cite22"></a>[22] PHP Foundation, <a href="https://thephp.foundation/blog/2024/08/19/state-of-generics-and-collections/" target="_blank" rel="noopener noreferrer">&quot;State of Generics and Collections&quot;</a>, August 2024; PHP Foundation, <a href="https://thephp.foundation/blog/2025/08/05/compile-generics/" target="_blank" rel="noopener noreferrer">&quot;Compile time generics: yay or nay?&quot;</a>, August 2025.</p>
<p><a id="cite23"></a>[23] Seifeddine Gmati, <a href="https://wiki.php.net/rfc/bound_erased_generic_types" target="_blank" rel="noopener noreferrer">Bound-Erased Generic Types RFC</a>, May 2026, declined 19 to 7 in a vote that closed June 28, 2026; <a href="https://discourse.thephp.foundation/t/php-dev-vote-rfc-bound-erased-generic-types/5554" target="_blank" rel="noopener noreferrer">vote discussion</a>.</p>
<p><a id="cite24"></a>[24] rustc dev guide, <a href="https://rustc-dev-guide.rust-lang.org/backend/monomorph.html" target="_blank" rel="noopener noreferrer">&quot;Monomorphization&quot;</a> (&quot;it comes at the cost of compile time&quot;); Rust Survey Team, <a href="https://blog.rust-lang.org/2025/02/13/2024-State-Of-Rust-Survey-results/" target="_blank" rel="noopener noreferrer">&quot;2024 State of Rust Survey Results&quot;</a>, Rust Blog, February 13, 2025 (&quot;slow compilation was at the top of the list, as it seems to be a perennial concern of Rust users&quot;); Rust Survey Team, <a href="https://blog.rust-lang.org/2026/03/02/2025-State-Of-Rust-Survey-results/" target="_blank" rel="noopener noreferrer">&quot;2025 State of Rust Survey Results&quot;</a>, Rust Blog, March 2, 2026.</p>
<p><a id="cite25"></a>[25] Dmitry Stogov and Zeev Suraski, <a href="https://wiki.php.net/rfc/jit" target="_blank" rel="noopener noreferrer">JIT RFC</a>, 2019; <a href="https://www.php.net/releases/8.0/en.php" target="_blank" rel="noopener noreferrer">PHP 8.0 release announcement</a>.</p>
<p><a id="cite26"></a>[26] Dmitry Stogov, <a href="https://wiki.php.net/rfc/jit-ir" target="_blank" rel="noopener noreferrer">JIT based on IR framework RFC</a>, 2023; <a href="https://www.php.net/releases/8.4/en.php" target="_blank" rel="noopener noreferrer">PHP 8.4 release announcement</a>.</p>
<p><a id="cite27"></a>[27] Ilija Tovilo, <a href="https://wiki.php.net/rfc/match_expression_v2" target="_blank" rel="noopener noreferrer">Match expression v2 RFC</a>; Nikita Popov, <a href="https://wiki.php.net/rfc/string_to_number_comparison" target="_blank" rel="noopener noreferrer">Saner string to number comparisons RFC</a>.</p>
<p><a id="cite28"></a>[28] <a href="https://wiki.php.net/rfc/fibers" target="_blank" rel="noopener noreferrer">Fibers RFC</a> (Aaron Piotrowski and Niklas Keller); <a href="https://wiki.php.net/rfc/true_async" target="_blank" rel="noopener noreferrer">True Async RFC</a> (status: Canceled; <a href="https://php.watch/rfcs/true_async" target="_blank" rel="noopener noreferrer">PHP.Watch</a> lists it as withdrawn, last updated July 22, 2026); <a href="https://wiki.php.net/rfc/async_scheduler_abi" target="_blank" rel="noopener noreferrer">Concurrency Support in the PHP Engine RFC</a>, July 23, 2026.</p>
<p><a id="cite29"></a>[29] Tag1, <a href="https://www.tag1.com/blog/goose-locust-inspired-load-testing-tool-rust/">&quot;Goose Attack: A Locust-inspired Load Testing Tool In Rust&quot;</a>, May 2020; Tag1 TeamTalk #016, <a href="https://www.tag1.com/tag1-team-talks/introducing-goose-highly-scalable-load-testing-framework-written-rust/">&quot;Introducing Goose, a highly scalable load testing framework written in Rust&quot;</a>, June 16, 2020; Tag1, <a href="https://www.tag1.com/blog/jmeter-vs-locust-vs-goose/">&quot;Choosing the right load testing tool: JMeter vs. Locust vs. Goose&quot;</a>, February 2021.</p>
<p><a id="cite30"></a>[30] <a href="https://www.drupal.org/project/drupal/releases/10.0.0" target="_blank" rel="noopener noreferrer">Drupal 10.0.0 release</a>; change records on <a href="https://www.drupal.org/node/3395575" target="_blank" rel="noopener noreferrer">attribute-based plugin discovery</a> and <a href="https://www.drupal.org/node/3392011" target="_blank" rel="noopener noreferrer">PHP Fibers in rendering</a>.</p>
<p><a id="cite31"></a>[31] <a href="https://www.drupal.org/project/drupal/releases/11.0.0" target="_blank" rel="noopener noreferrer">Drupal 11.0.0 release</a>; <a href="https://www.drupal.org/project/drupal/releases/11.1.0" target="_blank" rel="noopener noreferrer">Drupal 11.1.0 release</a>; change record <a href="https://www.drupal.org/node/3442349" target="_blank" rel="noopener noreferrer">&quot;Support for object oriented hook implementations using autowired services&quot;</a>.</p>
<p><a id="cite32"></a>[32] Drupal core blog, <a href="https://www.drupal.org/about/core/blog/drupal-1130-biggest-performance-boost-in-a-decade" target="_blank" rel="noopener noreferrer">&quot;Drupal 11.3.0: Biggest performance boost in a decade&quot;</a>, December 17, 2025; Tag1, <a href="https://www.tag1.com/gander/">Gander</a>; Tag1, <a href="https://www.tag1.com/blog/performance-testing-leads-major-improvements-drupal-cms-and-all-drupal/">&quot;Performance Testing Leads To Major Improvements for Drupal CMS, and all of Drupal&quot;</a>, January 2025; Nathaniel Catchpole, <a href="https://www.youtube.com/watch?v=qgmGtKJClRM" target="_blank" rel="noopener noreferrer">&quot;From Reactive to Proactive: Automated Performance Testing Success Stories&quot;</a>, DrupalCon Vienna session, October 16, 2025.</p>
<p><a id="cite33"></a>[33] Gábor Hojtsy, <a href="https://www.drupal.org/blog/drupal-11-4-0" target="_blank" rel="noopener noreferrer">&quot;Drupal 11.4.0 is now available&quot;</a>, <a href="http://drupal.org/">Drupal.org</a>, July 1, 2026; Nathaniel Catchpole, <a href="https://events.drupal.org/rotterdam2026/session/how-we-made-biggest-performance-gains-decade-drupal-core" target="_blank" rel="noopener noreferrer">&quot;How we made the biggest performance gains in a decade in Drupal core&quot;</a>, DrupalCon Rotterdam session, September 30, 2026.</p>
<p><a id="cite34"></a>[34] <a href="https://www.drupal.org/project/drupal/releases/11.4.0" target="_blank" rel="noopener noreferrer">Drupal 11.4.0 release</a>; <a href="https://www.drupal.org/project/drupal/releases/12.0.0-beta1" target="_blank" rel="noopener noreferrer">Drupal 12.0.0-beta1 release</a>, September 30, 2026; <a href="https://www.drupal.org/about/core/policies/core-release-cycles/schedule" target="_blank" rel="noopener noreferrer">Drupal core release schedule</a>; Gábor Hojtsy, <a href="https://www.drupal.org/about/core/blog/announcing-drupal-1200-platform-requirements" target="_blank" rel="noopener noreferrer">&quot;Announcing Drupal 12.0.0 platform requirements&quot;</a>, January 14, 2026; Drupal issue <a href="https://www.drupal.org/project/drupal/issues/3406215" target="_blank" rel="noopener noreferrer">#3406215, &quot;Default to requiring the latest stable PHP release available when a new major version reaches the first beta window&quot;</a>; Drupal issue <a href="https://www.drupal.org/node/3588847" target="_blank" rel="noopener noreferrer">#3588847, &quot;Update to Symfony 8.1&quot;</a> (committed July 28, 2026); <a href="http://php.net/">php.net</a>, <a href="https://www.php.net/supported-versions.php" target="_blank" rel="noopener noreferrer">Supported Versions</a> (PHP 8.5 security support until December 31, 2029).</p>
<p><a id="cite35"></a>[35] W3Techs, <a href="https://w3techs.com/technologies/details/pl-php" target="_blank" rel="noopener noreferrer">&quot;Usage statistics of PHP for websites&quot;</a>, retrieved September 29, 2026.</p>
<p><a id="cite36"></a>[36] <a href="https://www.php.net/releases/5_4_0.php" target="_blank" rel="noopener noreferrer">PHP 5.4.0 release announcement</a>; <a href="https://www.php.net/manual/en/function.mysql-connect.php" target="_blank" rel="noopener noreferrer">mysql_connect manual page</a>.</p>
<p><a id="cite37"></a>[37] PHP Foundation, <a href="https://thephp.foundation/blog/2025/05/15/frankenphp/" target="_blank" rel="noopener noreferrer">&quot;FrankenPHP is now officially supported by The PHP Foundation&quot;</a>, May 15, 2025; Jakub Zelenka, <a href="https://externals.io/message/127347" target="_blank" rel="noopener noreferrer">&quot;FrankenPHP moving under the PHP GitHub organization&quot;</a>, PHP internals mailing list, May 13, 2025 (&quot;At this time, there are no plans for tighter integration into php-src the way PHP-FPM or the CLI SAPI are&quot;); php-src pull request <a href="https://github.com/php/php-src/pull/21385" target="_blank" rel="noopener noreferrer">#21385</a>, &quot;Make php-cli functionality available in embed build,&quot; merged July 28, 2026; Károly Négyesi, &quot;<a href="https://www.tag1.com/blog/temporal-integration-with-drupal/">Beyond Batch and Queue: Temporal integration with Drupal</a>,&quot; Tag1, July 8, 2026 (Temporal workers run under RoadRunner); <a href="https://laravel.com/docs/13.x/octane" target="_blank" rel="noopener noreferrer">Laravel Octane documentation</a>.</p>
<p><a id="cite38"></a>[38] <a href="http://drupal.org/">Drupal.org</a>, <a href="https://www.drupal.org/about/announcements/blog/get-ready-to-celebrate-drupals-25th-birthday-on-jan-15th-2026" target="_blank" rel="noopener noreferrer">&quot;Get ready to celebrate Drupal's 25th birthday on Jan 15th, 2026&quot;</a>.</p>
]]></description>
      <pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Jeremy Andrews</dc:creator>
      <guid>https://www.tag1.com/blog/from-malloc-to-match-part-2/</guid>
    </item>
    
    
    <item>
      <title>From Malloc to Match (Part 1): The Evolution of PHP Through the Lens of a Systems Programmer</title>
      <link>https://www.tag1.com/blog/from-malloc-to-match-part-1/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#jeremy-andrews">Jeremy Andrews</a>, Tag1's Founding Partner and CEO, looks at PHP's early design through a former kernel developer's eyes, from hash tables for nearly everything to Drupal hooks built from strings. He shows what those trades cost Drupal 6 and 7, including hook lookups that took around 10% of page execution time, and how caching kept busy sites running. 
    </div>
</div>
</div>
<p><em>This is Part 1 of a two-part series about the trades PHP made early on and what they have meant for Drupal performance. <a href="https://www.tag1.com/blog/from-malloc-to-match-part-2/">Part 2</a> covers the Java-fication of Drupal, the engine-level work that saved PHP from itself, and how Drupal came full circle, with its biggest performance gains in a decade.</em></p>
<p>I met <a href="https://en.wikipedia.org/wiki/Rasmus_Lerdorf" target="_blank" rel="noopener noreferrer">Rasmus Lerdorf</a>, the creator of PHP, in 2007 at the <a href="https://groups.drupal.org/drupalcon-oscmss-2007" target="_blank" rel="noopener noreferrer">OSCMS Summit in Sunnyvale</a>, held on the Yahoo campus. I was in town to co-present at a <a href="https://www.lullabot.com/articles/performance-and-scalability-seminar-slides" target="_blank" rel="noopener noreferrer">LAMP performance seminar</a> held the day after the summit, and I almost didn't make it into the summit itself, as it was apparently filled to capacity and someone more well-known had to vouch for me at the door. This led to me sitting directly across from Rasmus at lunch without even knowing who he was, and we had a long conversation about PHP and its origins. His talk at the summit was called &quot;Performance and Security,&quot;<sup><a href="https://www.tag1.com/#cite1">[1]</a></sup> and it walked through profiling PHP with callgrind and Xdebug before moving on to cross-site scripting (he found a hole in pretty much every CMS in the room). What stuck with me was when he profiled Drupal and, as I remember it, showed that more than half of each request was spent bootstrapping, simply loading Drupal into memory before it could even start querying the database or rendering the page. That was pretty shocking to me.</p>
<p></p><figure class="component my-10 grid gap-4"><p></p>
<p><img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/rasmus-lerdorf-oscms-2007.jpg" alt="Rasmus Lerdorf, the creator of PHP, wearing a black PHP T-shirt at the 2007 OSCMS Summit." /></p>
<p></p><figcaption class="italic text-[var(--text-color)]">Rasmus Lerdorf at the OSCMS Summit, Sunnyvale, 2007<br /><cite>Photo: <a href="https://dri.es/album/drupalcon-sunnyvale-2007/rasmus-lerdorf" target="_blank" rel="noopener noreferrer">Dries Buytaert</a>, <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">CC BY 4.0</a></cite></figcaption>
</figure><p></p>
<p>I've been working with Drupal since early 2002, a few months before the 4.0.0 release, and Drupal is what introduced me to PHP. Before that I was a kernel developer, writing packet filters, kernel modules, and network stacks in C at a firewall company. I've told <a href="https://www.tag1.com/blog/my-first-drupal-migration/">that origin story elsewhere</a>; the short version is that I had a website that was crashing under its own traffic, and one of my readers, Dries Buytaert, reached out to tell me about this CMS he'd built. I switched to Drupal and, one thing leading to another, I found myself worrying less and less about null pointers.</p>
<p>A kernel developer is one kind of systems programmer, someone who writes <a href="https://en.wikipedia.org/wiki/Systems_programming" target="_blank" rel="noopener noreferrer">the software that other software runs on</a>: operating systems, device drivers, databases, and language runtimes like PHP's own engine. Most of the job is thinking about what the computer is physically doing, like when memory gets allocated and freed, how data is laid out, what the CPU actually executes, and where the time goes underneath the code you wrote. That way of thinking carries over to Drupal, because PHP is itself <a href="https://en.wikipedia.org/wiki/Zend_Engine" target="_blank" rel="noopener noreferrer">a C program</a>, and plenty of Drupal slowdowns only make sense one layer down, in PHP or below it. Back in 2009, for example, <a href="https://www.tag1.com/blog/nfs-drupal-and-realpath-cache/">we wrote about</a> running strace (a tool that lists every system call, or request to the operating system, that a program makes) on <a href="http://drupal.org/">drupal.org</a>'s web servers, where PHP was spending nearly half of its system call time checking file paths on network storage, and raising one PHP setting, the size of the realpath cache (a record of file paths already looked up), made most of that go away. Being able to look at that layer is one part of how we find and fix performance problems at Tag1.</p>
<p>Drupal turned 25 this January,<sup><a href="https://www.tag1.com/#cite2">[2]</a></sup> and PHP turned 30 last year (Rasmus first posted &quot;Personal Home Page Tools&quot; to a Usenet group on June 8, 1995).<sup><a href="https://www.tag1.com/#cite3">[3]</a></sup> I've also been writing a lot of Rust lately, which has a way of making you rethink every assumption about what a programming language should and shouldn't do for you. That said, I'm not going to focus on Rust in this blog, and I'm also not going to attack PHP. Instead, this is a reflection on how a language that started as a thin wrapper around C's standard library evolved into something that powers most of the web<sup><a href="https://www.tag1.com/#cite4">[4]</a></sup> (giving up nearly everything a systems programmer cares about along the way, which is a big part of what made Drupal possible), and what that evolution looked like from the perspective of someone who still thinks in pointers and structs. It's also a performance story, because those same trades still show up as Drupal performance problems, and working on those problems is how I've spent much of the last twenty years.</p>
<p>At DrupalCon Rotterdam this September, Dries named Drupal's reputation gap as the project's number one challenge: too many people are judging the Drupal of ten years ago, and his answer was to talk louder about what is working.<sup><a href="https://www.tag1.com/#cite5">[5]</a></sup> This post spends most of its time on the Drupal of fifteen and twenty years ago. The costs I describe were real, and some can still be found in a profiler, but they're also the costs Drupal and PHP have spent those years paying down, which is most of what Part 2 is about.</p>
<p>(If you're a decision maker and not a C programmer, some of this applies to you directly. If you're still running Drupal 7, you're running the architecture this post describes, and it reached end of life on January 5, 2025; if you're on a PHP release older than 8.2 you're no longer getting security fixes, and 8.2 itself stops getting them at the end of this year.<sup><a href="https://www.tag1.com/#cite6">[6]</a></sup>)</p>
<h2>The C Programmer's Wrapper</h2>
<p>For a C programmer entering web development in the late 1990s, PHP was immediately familiar in a way that was both comforting and unsettling. Functions like <code>strlen()</code>, <code>strpos()</code>, and <code>fopen()</code> were direct mappings to their C counterparts. The language felt like someone had taken libc, wrapped it in a parser that could be embedded in HTML, and called it a day. In fact, this is essentially how Rasmus explained it to me over lunch.</p>
<p><a href="https://www.php.net/manual/php3.php" target="_blank" rel="noopener noreferrer">PHP 3</a>, released in June 1998 after two developers in Tel Aviv rewrote the parser, was the first version that felt like an actual language rather than a templating tool.<sup><a href="https://www.tag1.com/#cite7">[7]</a></sup> Before that, <a href="https://www.php.net/manual/phpfi2.php" target="_blank" rel="noopener noreferrer">PHP/FI</a> was essentially a C program that parsed HTML and executed embedded tags. PHP 3 also got a new name: &quot;PHP&quot; had started out as &quot;Personal Home Page,&quot; and PHP 3 made it the recursive &quot;PHP: Hypertext Preprocessor,&quot; a name that turned out to be a lot more future-proof than the original. PHP 3 still executed code more or less as it parsed it, with no separate compile step and no intermediate representation. For someone used to the compile-link-run cycle of C, this parse-and-run approach was painfully slow. But it offered something C never could: you saved the file, refreshed the browser, and saw the result. That feedback loop changed everything about how fast you could build for the web.</p>
<p>For years I was embarrassed to admit I wrote PHP code. &quot;I'm really a kernel developer,&quot; I'd tell people, &quot;I swear.&quot; But the truth was that I loved how things just worked, without memory leaks, dangling pointers, or three-hour debugging sessions because I forgot to free a buffer.</p>
<p>PHP also introduced one of the worst security decisions in the history of web development: <code>register_globals</code>. When enabled (and it was enabled by default), PHP automatically created global variables from HTTP request parameters. A form field named <code>admin</code> became a global <code>$admin</code> variable. A query string parameter could overwrite a variable you thought you controlled. This was C's lack of memory safety translated into web security terms. In C, a buffer overflow lets an attacker write arbitrary data to memory. In PHP with <code>register_globals</code>, an attacker could inject arbitrary variables into your application's scope simply by manipulating the URL. It took until <a href="https://www.php.net/releases/4_2_0.php" target="_blank" rel="noopener noreferrer">PHP 4.2</a> (April 2002) to change the default to off, and until <a href="https://www.php.net/releases/5_4_0.php" target="_blank" rel="noopener noreferrer">PHP 5.4</a> (March 2012) to remove the feature entirely. Fourteen years later, the C underneath showed through directly: PHP2Shell, disclosed this month, is a set of memory-safety bugs in PHP's own engine, present in every release since that same PHP 5.4, that let an unauthenticated request take over the server (<a href="https://www.tag1.com/blog/php2shell-what-php-site-owners-should-do-today/">what PHP site owners should do today</a>).<sup><a href="https://www.tag1.com/#cite8">[8]</a></sup></p>
<p>At the turn of the century, though, seeing the C underneath was mostly a good thing. The two developers behind PHP 3 had rewritten the core again, and that rewrite, the <a href="https://en.wikipedia.org/wiki/Zend_Engine" target="_blank" rel="noopener noreferrer">Zend Engine</a>, shipped as PHP 4 in May 2000.<sup><a href="https://www.tag1.com/#cite7">[7]</a></sup> Code was now read once, compiled to an internal format (opcodes), and then executed, and the memory model was formalized. Variables were stored in a C struct called a <a href="https://www.php.net/manual/en/features.gc.refcounting-basics.php" target="_blank" rel="noopener noreferrer">zval</a> (Zend Value) that contained the value, the type, a reference count, and a flag for whether it was a reference. If you understood C structs, you could read the PHP source and see exactly what was happening under the hood, and a lot of what was happening was hash table lookups.</p>
<h3>The Hash Table Bargain</h3>
<p>The defining architectural decision of PHP, the one that explains both its flexibility and its performance characteristics to this day, is that almost everything is a hash table (a data structure that maps keys to values, like a dictionary where you look up a word to find its definition).</p>
<p>In C, an array is a pointer to a contiguous block of memory. You access an element by computing an offset: base address plus index times element size. It's O(1) and it's fast because the CPU prefetcher knows exactly where the next access will be.</p>
<p>In PHP, an &quot;array&quot; is actually an ordered map, storing the key and the value together and remembering the order they were inserted. Even a simple integer-indexed array went through the hash table machinery in PHP 4 and 5: the integer served as its own hash, but you still found the right bucket, resolved potential collisions (like a dictionary word with multiple definitions that you have to read one at a time to find the right one), and followed a pointer to the value.<sup><a href="https://www.tag1.com/#cite9">[9]</a></sup> Symbol tables for variables, function names, class names, and object properties are also all hash tables. In PHP 4, every time a script accessed <code>$x</code>, the engine hashed the string <code>&quot;x&quot;</code> and looked it up. (PHP 5.1 moved that hashing to compile time for local variables, an optimization known as &quot;compiled variables.&quot;<sup><a href="https://www.tag1.com/#cite10">[10]</a></sup> Functions and classes were still looked up by name in hash tables.)</p>
<p>To a C programmer, this is physically painful. You can feel the overhead. But the utility was undeniable. You could treat an array as a list, a map, a queue, or a stack without writing a single line of memory management code. No malloc, no free, no buffer overflows, and no use-after-free bugs. PHP traded everything a systems programmer values (memory layout, cache locality, deterministic performance) for something C couldn't offer: a world where an amateur could build a working web application without crashing the server.</p>
<p>That trade was worth it in 1998, and by 2007, when I was visiting the Yahoo campus, PHP was the P in LAMP. The overhead never went away entirely, but PHP has spent the years since making that trade a lot cheaper (Part 2 covers how), and the language isn't standing still. <a href="https://www.php.net/releases/8.5/en.php" target="_blank" rel="noopener noreferrer">PHP 8.5</a> shipped last November with a pipe operator, and PHP 8.6 is due November 19 with partial function application.<sup><a href="https://www.tag1.com/#cite11">[11]</a></sup></p>
<h3>Objects as Values</h3>
<p>The other peculiarity for a C programmer in PHP 4 was how objects worked. In C, when you assign a struct pointer to another variable, you're copying the pointer. Both variables point to the same memory. In PHP 4, objects were values. Assigning <code>$obj2 = $obj1</code> copied the object, meaning modifying <code>$obj2</code> had no effect on <code>$obj1</code>. To get reference behavior you had to use the explicit reference operator: <code>$obj2 =&amp; $obj1</code>.</p>
<p>This led to codebases littered with ampersands as developers fought against the language's default behavior. Many didn't fully understand what the ampersand was doing; they just knew that without it, modifying an object in one place didn't affect it in another, and with it, things worked the way they expected. So they scattered <code>&amp;</code> through function signatures and assignments like a protective incantation, often in places where it wasn't needed or where it introduced subtle bugs. It was the opposite of what anyone with C experience expected, and it meant unnecessary memory duplication everywhere. PHP 5 would eventually fix this, but for years the community worked around a language that couldn't efficiently share an object between two variables without a special annotation.</p>
<h2>Drupal and the Hook System</h2>
<p>I was working at the previously mentioned firewall company when Drupal found me in 2002. By November 2005, the firewall company had been acquired, and this being my second corporate merger, I quit. I couldn't suffer through another merger, and so instead started doing freelance Drupal performance consulting. The Drupal I knew during this period was procedural through and through.</p>
<p>Drupal emerged in this era as proof that you could build remarkably complex systems with PHP's messy toolbox. The architecture was purely procedural, built on a system called &quot;hooks.&quot;</p>
<p>A hook was string-based dynamic dispatch. If your module wanted to react to a user logging in, you defined a function called <code>mymodule_user()</code>. When Drupal invoked the user hook, it walked the list of enabled modules, glued each module's name onto the hook name, and asked PHP whether a function by that name existed (<code>function_exists()</code>, which is a lookup in the function table, a hash table, naturally).<sup><a href="https://www.tag1.com/#cite12">[12]</a></sup> Every match got called in turn. The C equivalent would be something like calling <code>sprintf()</code> to build a string, then doing a hash table lookup to find and invoke a function pointer. No vtables, no interfaces, and no compile-time checking of any kind. A typo in your function name, like <code>mymodule_usr()</code> instead of <code>mymodule_user()</code>, meant your code simply never ran. No error or warning, it just didn't exist as far as Drupal was concerned.</p>
<p>This was computationally expensive. The first time a hook ran in a request, Drupal built a string and did a hash lookup for every enabled module; after that it remembered which modules implemented the hook, but it still had to build each function name to call it. And that was just one hook. A single page load invoked a lot of different hooks, and a real site had a lot of modules, so the cost compounded as the site grew, which is why &quot;more modules means a slower site&quot; was common wisdom at the time. When core developers dug into this for Drupal 7 in 2009, they found <code>module_hook()</code> being called about 1,000 times on each page, with it and <code>module_implements()</code> taking up around 10% of page execution time, and noted that adding a few nodes, comments, or modules could increase the number of calls &quot;by a factor of 10 or more.&quot;<sup><a href="https://www.tag1.com/#cite13">[13]</a></sup> What came out of that work was a persistent cache in Drupal 7 of which modules implement which hooks, and an early version of the patch cut <code>module_hook()</code> calls on an empty front page from 783 to 58, saving about 35 milliseconds.<sup><a href="https://www.tag1.com/#cite13">[13]</a></sup> But the hook system was radically accessible. You didn't need to understand class hierarchies or design patterns. You needed to know the naming convention and the available hooks, and you could extend a complex content management system with a few functions in a single file.</p>
<p>It's easy to dismiss something like this from a systems programming perspective, but the Drupal community grew to many thousands of contributors precisely because you could write a useful module after reading one page of documentation.</p>
<h2>The Object-Oriented Shift</h2>
<p><a href="https://www.php.net/ChangeLog-5.php#PHP_5_0" target="_blank" rel="noopener noreferrer">PHP 5</a>, released in July 2004 with Zend Engine 2.0, fixed the object model.<sup><a href="https://www.tag1.com/#cite14">[14]</a></sup> Objects became handles rather than values. Under the hood, an object variable now held an identifier pointing to the actual object data in an object store. In C terms, <code>$obj</code> went from being a <code>struct Object</code> to being something much closer to a <code>struct Object*</code>. Assignment copied the handle, not the data. Both variables pointed to the same object.</p>
<p>This single change aligned PHP with how Java and Python handle objects and enabled a generation of design patterns that depend on shared state. Singletons, registries, dependency injection: none of these work cleanly when object assignment copies data. PHP 5 also introduced visibility modifiers (<code>public</code>, <code>private</code>, <code>protected</code>), which for a C programmer felt like the jump from C to C++. The language was beginning to enforce some discipline.</p>
<p>The 5.x series moved fast from there. <a href="https://www.php.net/releases/5_1_0.php" target="_blank" rel="noopener noreferrer">PHP 5.1</a> (November 2005) enabled PDO by default, a unified database access layer that offered one interface in place of the menagerie of database-specific extensions (<code>mysql_</code>, <code>pg_</code>). For a C developer, this was like ODBC: a common interface between your application and the storage engine. It also meant applications could switch databases without rewriting every query function, which Drupal 7 eventually built its entire database layer on. <a href="https://www.php.net/releases/5_2_0.php" target="_blank" rel="noopener noreferrer">PHP 5.2</a> (November 2006) added the JSON and filter extensions and proper <code>DateTime</code> objects, less glamorous but the kind of thing every web application ended up needing.</p>
<p><a href="https://www.php.net/releases/5_3_0.php" target="_blank" rel="noopener noreferrer">PHP 5.3</a> in June 2009 was the start of the modern era. Namespaces finally addressed the symbol collision problem that had plagued PHP since the beginning. No more naming functions <code>_field_ui_field_overview_form_validate_add_existing()</code> (a real Drupal 7 function<sup><a href="https://www.tag1.com/#cite15">[15]</a></sup>) to avoid conflicts. You could organize code as <code>Vendor\Component\ClassName</code>. The choice of backslash as the namespace separator was contentious and remains one of PHP's more visible oddities, since most languages use dots or double colons. PHP tried double colons first, but <code>foo::bar()</code> could mean either a static method on a class or a function in a namespace, and the engine couldn't reliably tell which, so in October 2008 the backslash won.<sup><a href="https://www.tag1.com/#cite16">[16]</a></sup> It's a good example of how PHP's evolution has always been constrained by decisions made when the language was a CGI script generator, since you can't use syntax that conflicts with existing behavior, even when that behavior is a relic.</p>
<p>Closures arrived in the same release, as anonymous functions with explicit variable capture: <code>function() use ($var) { ... }</code>. Internally each closure was an object of the <code>Closure</code> class, and the same release added the <code>__invoke</code> magic method so that any object could be called like a function, which made for a clever design. For a C programmer, closures are essentially function pointers with associated state, similar to what you'd build manually with a struct and a function pointer in C, but without the boilerplate. The explicit <code>use</code> clause is unusual compared to other languages that capture variables automatically, but it makes the data flow visible.</p>
<p><a href="https://www.php.net/releases/5_4_0.php" target="_blank" rel="noopener noreferrer">PHP 5.4</a> (March 2012) added traits for horizontal code reuse and the short array syntax (<code>[]</code> instead of <code>array()</code>). Traits looked a bit like the C preprocessor's <code>#include</code> applied to class methods, a way to share behavior without the constraints of single inheritance and without the complexity of multiple inheritance. <a href="https://www.php.net/releases/5_5_0.php" target="_blank" rel="noopener noreferrer">PHP 5.5</a> (June 2013) brought generators and <code>finally</code>, and bundled the OPcache extension, so compiled opcodes could stay in shared memory between requests without installing anything extra. <a href="https://www.php.net/ChangeLog-5.php#PHP_5_6" target="_blank" rel="noopener noreferrer">PHP 5.6</a> (August 2014) rounded out the series with variadic functions, argument unpacking, and constant scalar expressions, bringing the language closer to feature parity with what developers expected from a modern language.</p>
<h3>Drupal 6: Procedural as Far as It Would Go</h3>
<p><a href="https://www.drupal.org/forum/general/news-and-announcements/2008-02-13/drupal-60-released" target="_blank" rel="noopener noreferrer">Drupal 6</a>, released in February 2008, deserves attention because it was the version that took the procedural model as far as it could go while still being coherent. The menu system was rewritten from scratch, almost all themeable output moved into separate template files (separating content from presentation, at least in theory), and the new Schema API let modules describe their database tables as arrays instead of shipping hand-written <code>CREATE TABLE</code> statements for MySQL and PostgreSQL.<sup><a href="https://www.tag1.com/#cite17">[17]</a></sup></p>
<p>Drupal already had its own database abstraction by then. Instead of writing raw SQL with string concatenation (which is how SQL injection vulnerabilities are born), developers called <code>db_query()</code> with printf-style placeholders like <code>%d</code> and <code>%s</code>, and Drupal escaped the arguments before building the query. It wasn't true prepared statements, but it made the common case safe by default. Drupal 7 then replaced the whole layer with one built on PDO,<sup><a href="https://www.tag1.com/#cite18">[18]</a></sup> and, ironically, the notorious Drupalgeddon vulnerability (<a href="https://www.drupal.org/SA-CORE-2014-005" target="_blank" rel="noopener noreferrer">SA-CORE-2014-005</a>) was a SQL injection in that new layer itself, where specially crafted array keys let an anonymous user run arbitrary SQL on any Drupal 7 site before 7.32.<sup><a href="https://www.tag1.com/#cite19">[19]</a></sup></p>
<p>Drupal 6 was also the era where the module ecosystem exploded. The combination of hooks for extensibility, a stable API, and the low barrier to entry led to thousands of contributed modules covering everything from e-commerce to media handling. The architectural debt was piling up under the surface, but from a productivity standpoint, Drupal 6 was remarkable. You could build a complex content-driven website faster than with almost any other tool available.</p>
<p>I started Tag1 Consulting in October 2007, the year before Drupal 6 came out. Drupal 6 was the version that made enterprise clients take the platform seriously, so the timing worked out well for us.</p>
<p>When Clarity Digital Group, the owner of <a href="http://examiner.com/">Examiner.com</a>, acquired NowPublic, a citizen journalism site built on Drupal that we'd been supporting,<sup><a href="https://www.tag1.com/#cite20">[20]</a></sup> we ended up migrating <a href="http://examiner.com/">Examiner.com</a> from ColdFusion to Drupal 7, six months before Drupal 7 was even released. Examiner had over 20 million monthly readers and was among the top 100 sites in the United States (the Drupal 7 release announcement put it at 22.4 million monthly unique visitors).<sup><a href="https://www.tag1.com/#cite21">[21]</a></sup> Building at that scale on pre-release software meant hitting most every limitation the platform had, and solving them.</p>
<h3>Drupal 7 and the Limits of Procedural PHP</h3>
<p><a href="https://www.drupal.org/blog/drupal-70-is-released" target="_blank" rel="noopener noreferrer">Drupal 7</a>, released in January 2011, represents the high-water mark of procedural PHP architecture. Despite PHP 5.3 being available, Drupal 7 stayed mostly procedural to maintain backward compatibility, initially requiring only PHP 5.2.4.<sup><a href="https://www.tag1.com/#cite22">[22]</a></sup></p>
<p>The render array tells you everything about where this approach breaks down. Drupal had been building forms out of nested arrays since the Form API arrived, and Drupal 7 applied the same idea to the entire page. Instead of objects with methods, Drupal 7 used massive, deeply nested associative arrays to define the HTML output of a page, and any module could alter the whole thing before it rendered.<sup><a href="https://www.tag1.com/#cite23">[23]</a></sup> A render array was a dynamic DOM implementation built entirely on hash tables:</p>
<pre class="language-php"><code class="language-php"><span class="token variable">$page</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'content'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'system_main'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'nodes'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'body'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'#prefix'</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'&lt;div>'</span><span class="token punctuation">;</span>
<span class="token variable">$page</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'content'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'system_main'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'nodes'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'body'</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'#suffix'</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'&lt;/div>'</span><span class="token punctuation">;</span></code></pre>
<p>There was no type safety. A typo in a key string, <code>'#prfix'</code> instead of <code>'#prefix'</code>, would silently fail with nothing rendered and no error displayed. Debugging meant dumping megabytes of array data to the screen and scanning through it.</p>
<p>The memory cost was severe. A PHP 5 zval was 24 bytes on 64-bit systems (32 once the cycle collector's bookkeeping arrived in 5.3), and each one often pointed to another heap allocation.<sup><a href="https://www.tag1.com/#cite24">[24]</a></sup> Every level of every render array was another hash table full of them. Drupal 7 core needed a PHP <code>memory_limit</code> of 32MB just to install, and <a href="http://drupal.org/">drupal.org</a>'s own documentation notes that 128MB or 256MB is typical in production.<sup><a href="https://www.tag1.com/#cite22">[22]</a></sup> In C, you could represent the same data structure in packed structs using kilobytes. The render array gave any module the ability to intercept and modify output before rendering, which was powerful and useful, but the cost was enormous.</p>
<p>The class registry was another artifact of this era. Before <a href="https://www.php-fig.org/psr/psr-0/" target="_blank" rel="noopener noreferrer">PSR-0</a> and later <a href="https://www.php-fig.org/psr/psr-4/" target="_blank" rel="noopener noreferrer">PSR-4</a> made standardized autoloading the norm, Drupal 7 scanned the files each module declared for class and interface declarations and stored their file paths in a database table. When you instantiated <code>new MyClass()</code>, the autoloader checked a cache and, failing that, queried the registry table to find which file contained it.<sup><a href="https://www.tag1.com/#cite25">[25]</a></sup> A C programmer would look at this and see a dynamic linker that needs a database round-trip to resolve a symbol. It worked in an ingeniously hacky way, but a filesystem map is a lot cheaper than a database query.</p>
<h3>Every Request Starts Over</h3>
<p>All of that work happened again on every uncached request. Drupal 7's <code>index.php</code> is only a few lines long: it calls <code>drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL)</code>, then hands the request to the menu system,<sup><a href="https://www.tag1.com/#cite26">[26]</a></sup> so every uncached page paid for loading Drupal, walking its hooks, building its render arrays, and querying the database. Drupal's answer, from very early on, was to skip the work whenever it could. The page cache that first brought me to Drupal in 2002 promised to serve an entire page out of the database with a single query,<sup><a href="https://www.tag1.com/#cite27">[27]</a></sup> and by Drupal 7, trying to serve a cached page was the second of eight bootstrap phases, so an anonymous visitor could be handed a finished page and the request could exit before most of Drupal had loaded.<sup><a href="https://www.tag1.com/#cite26">[26]</a></sup></p>
<p>That idea has held up well. When we profiled Drupal CMS 1.0 in early 2025, a cached anonymous request for the homepage took 29 milliseconds, made 7,178 function calls, and ran 4 database queries. With the page cache turned off it took 116 milliseconds, 34,711 function calls, and 27 queries, and WordPress 6.7, profiled the same way, took 183 milliseconds, 142,595 function calls, and 31 queries.<sup><a href="https://www.tag1.com/#cite28">[28]</a></sup> Our write-up credits Drupal's edge to its &quot;very mature and multi-layered caching strategy and leaner bootstrap,&quot; and that bootstrap is the same part of the request Rasmus had profiled in 2007.</p>
<p>When traffic outruns the caches, those costs land on the database all at once. After the 2016 US election, the ACLU's action site (a Drupal site where supporters donate, join mailing lists, and write to elected officials) got so busy that database queries that normally took milliseconds took upwards of 10 seconds, or even more than a minute, and donors saw &quot;503 Service Unavailable&quot; errors.<sup><a href="https://www.tag1.com/#cite29">[29]</a></sup> The first fix, which we set up together with the ACLU team, took PHP out of the path entirely: a static HTML donation page served from a CDN (content delivery network, servers that hand out copies of a page without touching the site behind them) kept donations coming in while we worked on the site underneath. Then came query and index changes on the live database and better caching, which cut the initial page response time from 1400 milliseconds to 650. After that, load testing a replica of production found the next bottleneck, and the one after that, before real traffic did. All told, requests served per minute went up 705%, and on the night in December 2017 when the FCC repealed net neutrality, the site peaked at 1,900 submissions a minute without any downtime.<sup><a href="https://www.tag1.com/#cite29">[29]</a></sup></p>
<p>Back in the Drupal 7 years, none of this slowed the community down. Drupal kept growing, and in 2011 Tag1 Publishing launched Drupal Watchdog, a full-color print magazine (more on that in Part 2).<sup><a href="https://www.tag1.com/#cite30">[30]</a></sup> But the procedural model was running out of room. It had carried Drupal a long way, and the render array was the system telling you it had hit its ceiling, so something had to change.</p>
<p><em>In <a href="https://www.tag1.com/blog/from-malloc-to-match-part-2/">Part 2</a>, I'll talk about what changed, starting with the Java-fication of Drupal 8 and the engine-level work that saved PHP from itself, and ending with how Drupal came full circle. Along the way I'll share a couple more stories from Tag1's performance work, and where Drupal 11.3 and 11.4 have taken performance since.<sup><a href="https://www.tag1.com/#cite31">[31]</a></sup></em></p>
<h2>References</h2>
<p><a id="cite1"></a>[1] Rasmus Lerdorf, &quot;Performance and Security,&quot; OSCMS Summit, Sunnyvale, March 22, 2007; <a href="https://github.com/php/presentations/blob/master/oscms07.xml" target="_blank" rel="noopener noreferrer">slide source</a>.</p>
<p><a id="cite2"></a>[2] Dries Buytaert, <a href="https://dri.es/25-years-of-drupal-what-i-have-learned" target="_blank" rel="noopener noreferrer">&quot;25 years of Drupal: what I've learned&quot;</a>, January 2026 (Drupal 1.0.0 is dated January 15, 2001 in the Drupal CHANGELOG).</p>
<p><a id="cite3"></a>[3] The PHP Group, <a href="https://www.php.net/manual/en/history.php.php" target="_blank" rel="noopener noreferrer">&quot;History of PHP&quot;</a>; the PHP Foundation, <a href="https://thephp.foundation/blog/2025/06/08/php-30/" target="_blank" rel="noopener noreferrer">&quot;PHP turns 30&quot;</a>.</p>
<p><a id="cite4"></a>[4] W3Techs, <a href="https://w3techs.com/technologies/details/pl-php" target="_blank" rel="noopener noreferrer">&quot;Usage statistics of PHP as server-side programming language on websites&quot;</a> (PHP is used by 69.8% of the websites whose server-side language W3Techs can identify, September 29, 2026).</p>
<p><a id="cite5"></a>[5] <a href="https://www.drupal.org/blog/driesnote-rotterdam" target="_blank" rel="noopener noreferrer">&quot;DriesNote Rotterdam: Drupal is light-years ahead of its reputation&quot;</a>, <a href="http://drupal.org/">drupal.org</a>, September 29, 2026.</p>
<p><a id="cite6"></a>[6] <a href="https://www.drupal.org/psa-2023-06-07" target="_blank" rel="noopener noreferrer">Drupal 7 end of life</a>; <a href="https://www.php.net/supported-versions.php" target="_blank" rel="noopener noreferrer">PHP supported versions</a>.</p>
<p><a id="cite7"></a>[7] <a href="https://www.php.net/manual/en/history.php.php" target="_blank" rel="noopener noreferrer">&quot;History of PHP&quot;</a>, <a href="http://php.net/">php.net</a> (Andi Gutmans and Zeev Suraski of Tel Aviv rewrote the parser for PHP 3.0, announced June 1998; their Zend Engine was &quot;first introduced in mid 1999&quot;; PHP 4.0 was &quot;officially released in May 2000&quot;).</p>
<p><a id="cite8"></a>[8] Varonis, <a href="https://www.varonis.com/blog/php2shell" target="_blank" rel="noopener noreferrer">&quot;PHP2Shell: One Upload, Full Server&quot;</a>, October 2026 (CVE-2026-109618 and CVE-2026-109619; fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, with no official fix for 8.1 or older).</p>
<p><a id="cite9"></a>[9] Nikita Popov, <a href="https://www.npopov.com/2014/12/22/PHPs-new-hashtable-implementation.html" target="_blank" rel="noopener noreferrer">&quot;PHP's new hashtable implementation&quot;</a>, 2014.</p>
<p><a id="cite10"></a>[10] Sara Golemon, <a href="http://blog.golemon.com/2006/05/last-month-at-phptek-i-gave.html" target="_blank" rel="noopener noreferrer">&quot;Compiled Variables&quot;</a>, May 2006.</p>
<p><a id="cite11"></a>[11] <a href="https://www.php.net/releases/8.5/en.php" target="_blank" rel="noopener noreferrer">PHP 8.5 release announcement</a> (November 20, 2025); <a href="https://wiki.php.net/todo/php86" target="_blank" rel="noopener noreferrer">PHP 8.6 release schedule</a>; <a href="https://wiki.php.net/rfc/partial_function_application_v2" target="_blank" rel="noopener noreferrer">Partial Function Application RFC</a> (implemented for 8.6).</p>
<p><a id="cite12"></a>[12] <code>module_implements()</code> and <code>module_hook()</code> in <a href="https://git.drupalcode.org/project/drupal/-/raw/6.x/includes/module.inc" target="_blank" rel="noopener noreferrer">Drupal 6</a> and <a href="https://api.drupal.org/api/drupal/includes!module.inc/function/module_implements/7.x" target="_blank" rel="noopener noreferrer">Drupal 7</a>.</p>
<p><a id="cite13"></a>[13] Drupal issue <a href="https://www.drupal.org/project/drupal/issues/557542" target="_blank" rel="noopener noreferrer">#557542, &quot;Cache <code>module_implements()</code>&quot;</a>, opened August 24, 2009 (all from Nathaniel Catchpole: comment 30, &quot;around 10% of page execution time&quot;; comment 37, &quot;about 1000 times on each page&quot;; comment 38, &quot;could increase by a factor of 10 or more,&quot; with the patch reducing <code>module_hook()</code> calls &quot;from 783 to 58 on a completely empty front page&quot; for &quot;about 35ms saving&quot;).</p>
<p><a id="cite14"></a>[14] <a href="https://www.php.net/archive/2004.php" target="_blank" rel="noopener noreferrer">PHP 5.0.0 release</a>, July 13, 2004; <a href="https://www.php.net/manual/en/language.oop5.references.php" target="_blank" rel="noopener noreferrer">object handles</a>.</p>
<p><a id="cite15"></a>[15] <a href="https://api.drupal.org/api/drupal/modules!field_ui!field_ui.admin.inc/function/_field_ui_field_overview_form_validate_add_existing/7.x" target="_blank" rel="noopener noreferrer"><code>_field_ui_field_overview_form_validate_add_existing()</code></a> in Drupal 7.</p>
<p><a id="cite16"></a>[16] Gregory Beaver, <a href="https://wiki.php.net/rfc/backslashnamespaces" target="_blank" rel="noopener noreferrer">&quot;Request for Comments: problems of namespaces and potential solutions&quot;</a>, October 25, 2008; Lukas Smith, <a href="https://wiki.php.net/rfc/namespaceseparator" target="_blank" rel="noopener noreferrer">namespace separator decision</a>, October 25, 2008.</p>
<p><a id="cite17"></a>[17] <a href="https://www.drupal.org/forum/general/news-and-announcements/2008-02-13/drupal-60-released" target="_blank" rel="noopener noreferrer">Drupal 6.0 release announcement</a>, February 13, 2008.</p>
<p><a id="cite18"></a>[18] <a href="https://git.drupalcode.org/project/drupal/-/raw/7.x/CHANGELOG.txt" target="_blank" rel="noopener noreferrer">Drupal 7 CHANGELOG</a> (&quot;Fully rewritten database layer utilizing PHP 5's PDO abstraction layer&quot;).</p>
<p><a id="cite19"></a>[19] <a href="https://www.drupal.org/SA-CORE-2014-005" target="_blank" rel="noopener noreferrer">SA-CORE-2014-005</a>, October 15, 2014; <a href="https://nvd.nist.gov/vuln/detail/CVE-2014-3704" target="_blank" rel="noopener noreferrer">CVE-2014-3704</a>.</p>
<p><a id="cite20"></a>[20] <a href="https://www.drupal.org/forum/general/news-and-announcements/2009-09-19/drupal-powered-nowpubliccom-acquired-by-the-clarity" target="_blank" rel="noopener noreferrer">&quot;Drupal powered NowPublic.com acquired by the Clarity Digital Group&quot;</a>, <a href="http://drupal.org/">drupal.org</a>, September 2009; Dries Buytaert, <a href="https://dri.es/examiner-com-acquires-nowpublic" target="_blank" rel="noopener noreferrer">&quot;Examiner.com acquires NowPublic&quot;</a>, September 3, 2009.</p>
<p><a id="cite21"></a>[21] <a href="https://www.drupal.org/press/drupal-7.0/en" target="_blank" rel="noopener noreferrer">Drupal 7.0 press release</a>.</p>
<p><a id="cite22"></a>[22] <a href="https://git.drupalcode.org/project/drupal/-/raw/7.0/includes/bootstrap.inc" target="_blank" rel="noopener noreferrer">Drupal 7.0 <code>includes/bootstrap.inc</code></a> (<code>DRUPAL_MINIMUM_PHP</code> 5.2.4, <code>DRUPAL_MINIMUM_PHP_MEMORY_LIMIT</code> 32M); <a href="https://www.drupal.org/docs/7/system-requirements/php-requirements" target="_blank" rel="noopener noreferrer">Drupal 7 PHP requirements</a>.</p>
<p><a id="cite23"></a>[23] <a href="https://www.drupal.org/docs/7/api/render-arrays/render-arrays-overview" target="_blank" rel="noopener noreferrer">&quot;Render Arrays in Drupal 7&quot;</a>.</p>
<p><a id="cite24"></a>[24] Nikita Popov, <a href="https://www.npopov.com/2015/05/05/Internal-value-representation-in-PHP-7-part-1.html" target="_blank" rel="noopener noreferrer">&quot;Internal value representation in PHP 7, part 1&quot;</a>, 2015.</p>
<p><a id="cite25"></a>[25] <a href="https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/_registry_check_code/7.x" target="_blank" rel="noopener noreferrer"><code>_registry_check_code()</code></a> in Drupal 7.</p>
<p><a id="cite26"></a>[26] <a href="https://git.drupalcode.org/project/drupal/-/raw/7.x/index.php" target="_blank" rel="noopener noreferrer">Drupal 7 <code>index.php</code></a>; <a href="https://git.drupalcode.org/project/drupal/-/raw/7.x/includes/bootstrap.inc" target="_blank" rel="noopener noreferrer">Drupal 7 <code>includes/bootstrap.inc</code></a> (<code>DRUPAL_BOOTSTRAP_PAGE_CACHE</code>, &quot;Second bootstrap phase: try to serve a cached page,&quot; and <code>_drupal_bootstrap_page_cache()</code>, which serves the cached page and exits).</p>
<p><a id="cite27"></a>[27] Jeremy Andrews, <a href="https://www.tag1.com/blog/my-first-drupal-migration/">&quot;My First Drupal Migration&quot;</a>, Tag1, October 2023.</p>
<p><a id="cite28"></a>[28] Nathaniel Catchpole, <a href="https://www.tag1.com/blog/drupal-cms-vs-wordpress-performance-2025/">&quot;Drupal CMS 1.0 vs. WordPress 6.7: A Performance Showdown&quot;</a>, Tag1, January 22, 2025 (XHProf wall times of 29,296, 115,849 and 182,643 microseconds, rounded here).</p>
<p><a id="cite29"></a>[29] Tag1 case study, <a href="https://www.tag1.com/our-work/aclu/">&quot;American Civil Liberties Union&quot;</a> (ACLU Action as one of the ACLU's Drupal sites, the November 2016 slowdowns and 503 errors, the static CDN donation page, the 1400 to 650 millisecond response time, the 705% increase in requests served per minute, and the December 2017 peak of 1,900 submissions per minute without downtime).</p>
<p><a id="cite30"></a>[30] Tag1, <a href="https://www.tag1.com/blog/tag1-looks-back-20-years-drupal-experiences/">&quot;Tag1 looks back on 20 years of Drupal experiences&quot;</a>, February 16, 2021 (&quot;Tag1 created Drupal Watchdog, the first print magazine dedicated to Drupal,&quot; with a &quot;five year run from 2011-2016&quot;); Tag1, <a href="https://www.tag1.com/blog/issue-1-drupal-magazine/">&quot;Issue #1 of a Drupal Magazine&quot;</a>, January 7, 2011 (announced for distribution at DrupalCon Chicago); Drupal Watchdog, <a href="https://www.drupalwatchdog.net/advertise" target="_blank" rel="noopener noreferrer">print advertisements</a> (&quot;Full-color advertisement sizes are available for Drupal Watchdog's print magazine&quot;).</p>
<p><a id="cite31"></a>[31] Drupal core blog, <a href="https://www.drupal.org/about/core/blog/drupal-1130-biggest-performance-boost-in-a-decade" target="_blank" rel="noopener noreferrer">&quot;Drupal 11.3.0: Biggest performance boost in a decade&quot;</a>, December 17, 2025; <a href="https://www.drupal.org/blog/drupal-11-4-0" target="_blank" rel="noopener noreferrer">&quot;Drupal 11.4.0 is now available&quot;</a>, <a href="http://drupal.org/">drupal.org</a>, July 1, 2026 (half the database queries of 11.3, and just over a third of the database and cache lookups of 11.0 on a cold cache).</p>
]]></description>
      <pubDate>Wed, 28 Oct 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Jeremy Andrews</dc:creator>
      <guid>https://www.tag1.com/blog/from-malloc-to-match-part-1/</guid>
    </item>
    
    
    <item>
      <title>PHP2Shell: What PHP Site Owners Should Do Today</title>
      <link>https://www.tag1.com/blog/php2shell-what-php-site-owners-should-do-today/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<p>On 21 October 2026, as <a href="https://www.php.net/archive/2026.php#2026-10-20-1">scheduled</a>, the PHP project released <a href="https://www.php.net/archive/2026.php#2026-10-21-5">PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35</a>. They fix two vulnerabilities, <a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w">CVE-2026-109618</a> and <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">CVE-2026-109619</a>, that can allow unauthenticated remote code execution. <a href="https://www.php.net/archive/2026.php#2026-10-21-5">Every PHP installation that serves web requests</a> is in scope: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP security team rates both <a href="https://www.php.net/archive/2026.php#2026-10-20-1">9.2 out of 10 (CVSS v4.0)</a> and <a href="https://www.php.net/archive/2026.php#2026-10-21-5">considers the risk highest for mod_php</a>, where a demonstrated exploit runs before any application code.</p>
<p>In practice, anyone who can reach your site like an ordinary visitor, with no account or password, could run their own commands on your server: read the database, <a href="https://www.php2shell.com/">steal passwords and API keys</a>, change pages or install malware. The bugs sit in PHP, the language Drupal and WordPress run on, so <a href="https://www.php2shell.com/#upgrade-php">updating Drupal or WordPress will not help</a>. PHP runs <a href="https://w3techs.com/technologies/details/pl-php">69% of websites whose server-side language W3Techs can identify</a>, and the <a href="https://www.php2shell.com/">researchers</a> demonstrated attacks against Drupal, WordPress and Joomla. They say temporary web firewall rules do not replace the PHP update.</p>
<p>If a host or developer runs your site, ask them today whether PHP has been updated. At Tag1 we have been updating client servers all day, and we made sure <a href="https://www.drupal.org/">Drupal.org</a>, whose infrastructure we manage, is patched.</p>
<h2>What to do now</h2>
<p><strong>If a host or developer runs your server, start with them.</strong> Ask which PHP version is running and when PHP was restarted, then use the checks below.</p>
<p><strong>Otherwise, update PHP.</strong> This is <a href="https://www.php.net/archive/2026.php#2026-10-21-5">the only complete fix</a>. I would patch mod_php servers first; where no patched build exists yet, use the stopgaps below. As of 18:25 UTC on 21 October:</p>
<ul>
<li>Ubuntu has published <a href="https://ubuntu.com/security/notices/USN-8948-1">USN-8948-1</a> for 22.04, 24.04, 26.04 and 26.10, and <a href="https://ubuntu.com/security/notices/USN-8948-2">USN-8948-2</a> for 14.04 to 20.04 through Ubuntu Pro.</li>
<li>Debian has published <a href="https://security-tracker.debian.org/tracker/DSA-6574-1">DSA-6574-1</a> for trixie and, through Debian LTS, <a href="https://security-tracker.debian.org/tracker/DLA-4848-1">DLA-4848-1</a> for bookworm.</li>
<li>Docker Hub <a href="https://hub.docker.com/_/php/tags">has fixed images</a> for all four branches on the main architectures, and <code>latest</code> now points at them. Pull fresh and rebuild; running containers keep the old PHP.</li>
<li>The Remi repository carries the fixed releases for Enterprise Linux 9 (for example <a href="https://rpms.remirepo.net/enterprise/9/php84/x86_64/repoview/php-cli.html">8.4.27</a>).</li>
<li>Ondřej Surý's <a href="https://deb.sury.org/">deb.sury.org</a> repository is <a href="https://codeberg.org/oerdnj/deb.sury.org/issues/145#issuecomment-25974932">publishing the fix for every branch from 5.6 to 8.5</a>, amd64 first. The <a href="https://launchpad.net/~ondrej/+archive/ubuntu/php/+packages"><code>ppa:ondrej/php</code></a> PPA has the fix for every branch on amd64 for Ubuntu 22.04 and 24.04, but some arm64 and ppc64el builds were still pending, so check that <code>apt</code> installed a new PHP package.</li>
</ul>
<p><strong>Then restart PHP.</strong> After the update, <a href="https://www.php2shell.com/#upgrade-php">restart Apache (for mod_php), PHP-FPM and any long-running PHP processes</a>.</p>
<p>To confirm, check the version your site reports: Drupal shows it on its status report and WordPress under <a href="https://wordpress.org/support/update-php/">Tools &gt; Site Health &gt; Info &gt; Server</a>. Builds from <a href="http://php.net/">php.net</a> show the new number. Distribution packages often keep the old one: Ubuntu 24.04's fixed package is <a href="https://ubuntu.com/security/notices/USN-8948-1">8.3.6-0ubuntu0.24.04.13</a>, yet the site still reports 8.3.6. There, check the installed PHP packages (for example <code>dpkg -l | grep php</code>) against your distribution's notice, or ask whoever runs the server to.</p>
<p><strong>If you run PHP 8.1 or older, plan the upgrade.</strong> The PHP project no longer releases those versions, but its security team published <a href="https://www.php.net/archive/2026.php#2026-10-21-5">minimal source backports for 7.4, 8.0 and 8.1</a> for people who build PHP themselves. <a href="http://deb.sury.org/">deb.sury.org</a>, listed above, <a href="https://codeberg.org/oerdnj/deb.sury.org/issues/145#issuecomment-26041685">packages the fix for 5.6 through 8.1</a>. When you do upgrade, skip 8.2: it <a href="https://www.php.net/supported-versions.php">reaches end of life on 31 December 2026</a>.</p>
<h2>If you cannot update today</h2>
<p>The PHP project's <a href="https://www.php.net/archive/2026.php#2026-10-21-5">advisory</a> lists stopgaps that reduce exposure to specific attack paths. They are a bridge to the update, not a fix. Restart every PHP worker after applying them:</p>
<ul>
<li>Set <code>session.upload_progress.enabled=0</code> in php.ini, the FPM pool or the Apache configuration. Do not rely on <code>ini_set()</code> or FPM <code>.user.ini</code> files.</li>
<li>Set <code>memory_limit=-1</code> with <code>php_admin_value</code> so applications cannot override it, and put a container or cgroup memory limit in its place. This blocks only one route to CVE-2026-109618. Do not use <code>RLIMIT_AS</code> or <code>RLIMIT_DATA</code> for the replacement limit.</li>
<li>Cap <code>post_max_size</code> at 8M if you accept no uploads, or 32M if you do, and keep <code>upload_max_filesize</code> below it.</li>
<li>On PHP 8.5, also set <code>fatal_error_backtraces=0</code>.</li>
</ul>
<h2>After you patch</h2>
<p>Patching does not tell you whether anyone got in first. The <a href="https://www.php2shell.com/">researchers</a> list signs to look for, such as oversized PHPSESSID cookies, memory limit errors after multipart requests, and unexplained worker crashes. They add that none of these proves or rules out an attack. I would also look for PHP files in the web root that you did not deploy, and for new cron jobs and accounts. Because CVE-2026-109619 <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">can leak process memory</a> even if the attacker <a href="https://www.php2shell.com/">never gains code execution</a>, I would rotate the database password and API keys on any internet-facing server that ran an affected version.</p>
<p>Thank you to the PHP security team, who <a href="https://www.php.net/archive/2026.php#2026-10-21-5">shipped fixes for four branches and backports for three unsupported versions</a>. The status list above is a snapshot from 18:25 UTC on 21 October, so check the linked sources for anything newer.</p>
]]></description>
      <pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Jeremy Andrews</dc:creator>
      <guid>https://www.tag1.com/blog/php2shell-what-php-site-owners-should-do-today/</guid>
    </item>
    
    
    <item>
      <title>Human in the Middle: The Review Is Still Yours</title>
      <link>https://www.tag1.com/how-to/human-in-the-middle/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<p><em><a href="https://www.tag1.com/blog/how-tag1-reviews-code/">How Tag1 Reviews Code with AI</a> covered the tools Tag1 built to put AI into the PR review process. This post shows the pattern: AI drafts your whole review into GitHub pending reviews or GitLab draft notes, and you decide, line by line, what gets published under your name.</em></p>
<hr />
<h2>Where AI Fits in Code Review</h2>
<p>AI is good at the unglamorous parts of review: actually reading every line of a large diff, knowing the obscure API pitfalls no single reviewer carries in their head, checking the change against the rest of the codebase for consistency, and asking every &quot;what if this input is empty&quot; question without getting bored. What it can't tell you is which of its twenty comments actually matter.</p>
<p>There are two ways to put that to work, and they're not in competition. The first is the one most people have seen: a bot that reads the pull request and posts its review straight to it. That's a good fit for CI and merge gating. Tag1's own <a href="https://www.tag1.com/blog/how-tag1-reviews-code/">ai-pr-review</a> runs on every push, combining deterministic scanners with AI reviewers, and can gate merges on what it finds: a leaked credential, a known CVE, a phpstan error, or a logic bug an agent caught.</p>
<p>The second way is quieter, and easy to overlook. Both GitHub and GitLab have a staging layer for reviews: comments you write that nobody else can see until you press submit. GitHub calls it a pending review; GitLab calls them draft notes (&quot;Start a review&quot;). Point your AI at that layer instead of at the publish button and you get the machine's thoroughness with a person still accountable for every published word. That's what this post is about, and it's what you want when the review goes out under your name, especially when you're the gate a client is paying to stand between their code and their production site. There, the reviewer of record should be someone who read the change and chose to sign it.</p>
<h2>The Workflow</h2>
<p>The workflow has four steps:</p>
<ol>
<li>AI reads the PR and writes review comments into a pending review, under your account, visible only to you.</li>
<li>You open the PR in the normal web UI, and edit, delete, or add comments like you always do.</li>
<li>Optionally, ask the AI to look at your edited pending review and flag anything you missed or got wrong. Repeat.</li>
<li>You press submit. Every published word is one you chose to publish, under your name.</li>
</ol>
<p>You can wire this up yourself, which is what the rest of this post covers. If you'd rather start from something prebuilt, Greg Chaix's <a href="https://github.com/tag1consulting/claude-comprehensive-review" target="_blank">comprehensive-review</a> already packages the pattern: it runs the review locally and can stage its findings as a draft review for you to edit and submit.</p>
<h2>GitHub: Pending Reviews</h2>
<p>When you comment via &quot;Start a review&quot; in the Files changed tab, GitHub holds the comments in a pending review — they're &quot;pending and only visible to you,&quot; <a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request" target="_blank" rel="noopener">per GitHub's docs</a>, until you submit as Comment, Approve, or Request changes. The same states exist in the <a href="https://docs.github.com/en/rest/pulls/reviews" target="_blank" rel="noopener">REST API</a>: create a review without an <code>event</code> and it lands in <code>PENDING</code>; a second call to <code>.../reviews/{review_id}/events</code> submits it; <code>DELETE</code> abandons it. Each user gets one pending review per PR. GitHub doesn't seem to document this anywhere, but the API enforces it with a 422 error: &quot;User can only have one pending review per pull request.&quot;</p>
<p>The detail that matters is that if the AI authenticates with your token, the pending review it creates is yours. It shows up in your browser as your own draft, fully editable.</p>
<p>One approach for integrating AI into human-owned reviews is the official <a href="https://github.com/github/github-mcp-server" target="_blank">GitHub MCP server</a>, which wraps everything in purpose-built tools. One command connects it to Claude Code (create a Personal Access Token (PAT) with repo scope first):</p>
<pre class="language-bash"><code class="language-bash">claude mcp <span class="token function">add</span> <span class="token parameter variable">--transport</span> http github https://api.githubcopilot.com/mcp <span class="token punctuation">\</span>
  <span class="token parameter variable">-H</span> <span class="token string">"Authorization: Bearer YOUR_GITHUB_PAT"</span></code></pre>
<p>This exposes the purpose-built tools: <code>pull_request_review_write</code> to create, submit, or delete a review, and <code>add_comment_to_pending_review</code> to add inline comments to your latest pending review. Then, prompt with something like:</p>
<blockquote>
<p>Review PR #123 in tag1/example. Read the full diff. Start a pending review and add inline comments only for real problems: correctness, security, performance. Prefix each with Critical/Minor/Nit. Do NOT submit the review; I'll edit and submit it myself.</p>
</blockquote>
<p>Because the agent runs as you, a second round works too: &quot;I've edited the pending review. Read it back, tell me what I misjudged, and add pending comments for anything I missed.&quot;</p>
<p>The <code>gh</code> CLI is the more dependable approach. There's currently <a href="https://github.com/cli/cli/issues/12232" target="_blank">no native pending-review command for <code>gh pr</code></a> (no <code>gh pr review --draft</code>), but <code>gh api</code> can do it in a single call with nothing extra to install, and when Claude Code prompts you to approve the call it shows the full comment text in a readable form which the MCP doesn't.</p>
<pre class="language-bash"><code class="language-bash"><span class="token comment"># Create a pending review with inline comments (no "event" = stays pending)</span>
gh api repos/tag1/example/pulls/123/reviews <span class="token parameter variable">--input</span> - <span class="token operator">&lt;&lt;</span><span class="token string">'EOF'
{
  "body": "First pass by Claude; edited by Jeremy.",
  "comments": [
    { "path": "src/Form/SettingsForm.php", "line": 87, "side": "RIGHT",
      "body": "Critical: user input is concatenated into the query; use a placeholder." }
  ]
}
EOF</span></code></pre>
<p>You then edit and submit in the web UI. The one thing <code>gh api</code> can't do is append comments to a review you've already started: the REST endpoint only accepts comments at creation time, and the append path needs GraphQL, <a href="https://github.com/orgs/community/discussions/168380" target="_blank" rel="noopener">as discussed in the GitHub community</a>. That's the case where the MCP server has an advantage, since it does the GraphQL for you.</p>
<h2>GitLab and Drupal: Draft Notes</h2>
<p>For those of us in the Drupal ecosystem, most contribution happens through GitLab merge requests on <a href="https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-drupal" target="_blank">git.drupalcode.org</a>. Fortunately this uses the same pattern, but with different names.</p>
<p>In the UI, <a href="https://docs.gitlab.com/user/project/merge_requests/reviews/" target="_blank">Start a review / Add to review</a> keeps comments unpublished and visible only to you until you submit (with Approve, Comment, or Request changes). This is a Free-tier feature, so it works on any GitLab deployment.</p>
<p>The GitLab API calls them <a href="https://docs.gitlab.com/api/draft_notes/" target="_blank">draft notes</a>. To use them, you first need to point <code>glab</code> at the right instance (create a personal access token with <code>api</code> scope in your GitLab profile settings). Swap <code>git.drupalcode.org</code> for your own GitLab host (<code>gitlab.com</code> or your self-managed instance).</p>
<pre class="language-bash"><code class="language-bash">glab auth login <span class="token parameter variable">--hostname</span> git.drupalcode.org</code></pre>
<p>Inline comments need diff SHAs, which come from the merge request itself. Run these inside your clone of the project:</p>
<pre class="language-bash"><code class="language-bash"><span class="token comment"># Get the SHAs the position object needs</span>
glab api projects/:id/merge_requests/42 <span class="token operator">|</span> jq .diff_refs
 
<span class="token comment"># AI (or you) stages an inline comment; nobody else sees it</span>
glab api projects/:id/merge_requests/42/draft_notes <span class="token parameter variable">--input</span> - <span class="token operator">&lt;&lt;</span><span class="token string">'EOF'
{
  "note": "Minor: this hook is missing a cache tag for the config entity.",
  "position": {
    "position_type": "text",
    "new_path": "src/EventSubscriber/CacheSubscriber.php",
    "new_line": 54,
    "base_sha": "&lt;diff_refs.base_sha>",
    "head_sha": "&lt;diff_refs.head_sha>",
    "start_sha": "&lt;diff_refs.start_sha>"
  }
}
EOF</span>
 
<span class="token comment"># Later, YOU publish, or just click "Submit review" in the UI</span>
glab api <span class="token parameter variable">-X</span> POST projects/:id/merge_requests/42/draft_notes/bulk_publish</code></pre>
<p>GitLab's official <a href="https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/">MCP server</a> (beta, Premium/Ultimate) can read MR diffs and pipelines but doesn't expose draft notes yet, <a href="https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server_tools/" target="_blank" rel="noopener">per its tool list</a>, so on GitLab the dependable recipe is to let the agent read the MR however it likes, but have it stage comments through <code>glab api .../draft_notes</code>. Drop the commands above into your project's <code>CLAUDE.md</code> and Claude Code handles the SHAs and line positions itself.</p>
<h2>Two Rules</h2>
<p>Two simple rules guide the workflow. First, tell the AI explicitly, every time, that it must never submit, approve, or publish anything; staging comments is its entire job. Second, run it with your own credentials, because draft comments are only editable by their author, and the author should be you.</p>
<p>The AI delivers the efficiency: it reads every line of the diff in minutes and never gets bored or distracted. You deliver the quality: your judgment decides what's real, what matters, and how to say it to a colleague, and the AI's optional second pass over your edits catches what you missed. Because nobody else sees the pull request until you've read it, shaped it, and chosen to sign it, you stay in control of the review from first comment to submit button. You're not choosing between doing reviews faster and doing them well. Done this way, AI helps you achieve both.</p>
]]></description>
      <pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Jeremy Andrews</dc:creator>
      <guid>https://www.tag1.com/how-to/human-in-the-middle/</guid>
    </item>
    
    
    <item>
      <title>All Hands on Deck: Tag1 Is Headed to DrupalCon Rotterdam</title>
      <link>https://www.tag1.com/blog/drupalcon-rotterdam2026/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#hank-vanzile">Hank VanZile</a>, Senior Director of Customer Experience at Tag1, previews Tag1's seven-talk lineup for DrupalCon Rotterdam 2026: practical AI in Drupal, the deep core work behind performance and testing, and a labor-union learning platform rebuilt on Drupal. One is a shadow-AI session he co-presents with amazee.ai. The day before the conference, Tag1 attends and sponsors the Enterprise Drupal AI Summit as a Certified Gold Partner and Maker in the Drupal AI Initiative. 
    </div>
</div>
</div>
<p>The DrupalCon program is always more than any one person can take in, so ahead of Rotterdam I want to lay out where Tag1 will be and how to connect with us. We have seven talks across Tuesday the 29th and Wednesday the 30th.</p>
<img loading="lazy" decoding="async" class="float-left mx-2" src="https://www.tag1.com/img/insights/content/drupalcon-rotterdam-logo.png" alt="DrupalCon Chicago logo" width="150" height="162" />
<p>If you are coming, treat this as a map to where we will be and what we will be talking about. If you are not, the lineup is a fair read on where our heads are this year. A good deal of it is AI a team can put to work in a Drupal project today. More of it is the unglamorous work inside Drupal core, the parts nobody demos but everything else leans on. And one talk is the client story that keeps the rest honest. The <a href="https://events.drupal.org/rotterdam2026/schedule" target="_blank">full DrupalCon schedule</a> covers everything beyond our own sessions; the times below are all local CEST.</p>
<h2>First Stop, Afloat: The Enterprise Drupal AI Summit</h2>
<img loading="lazy" decoding="async" class="float-left mx-2" src="https://www.tag1.com/img/insights/content/drupal-ai-gold-sponsor-logo.png" alt="Drupal AI Gold Sponsor logo" width="150" height="162" />
<p>The week opens on Monday the 28th, before any of the DrupalCon sessions, with a full day at the <a href="https://summit.enterprisedrupal.eu/schedule.html" target="_blank">Enterprise Drupal AI Summit</a> aboard the SS Rotterdam, the former ocean liner. It's a strategy day rather than a code day, built for senior decision-makers in government, higher education, and large enterprises, with a program on data sovereignty and running AI on enterprise platforms. Tag1 is there as both a summit sponsor and a <a href="https://www.tag1.com/blog/tag1-joins-drupal-ai-initiative/">Certified Gold Partner and Maker in the Drupal AI Initiative</a>. The certification marks demonstrated Drupal AI expertise and a commitment to the Drupal code and community, and it fits a longer pattern. Data sovereignty is also where my own session picks up the next day, so if that is the thread you care about, the summit is the place to start.</p>
<h2>Next Stop, Ashore: The DrupalCon Sessions</h2>
<h3>Tuesday, September 29</h3>
<h3><a href="https://events.drupal.org/rotterdam2026/session/shadow-ai-sovereign-ai-infrastructure-sponsored-amazeeai" target="_blank">From Shadow AI to Sovereign AI Infrastructure</a></h3>
<ul>
<li><strong>Location:</strong> Open Stage</li>
<li><strong>When:</strong> 14:25 CEST</li>
<li><strong>Speakers:</strong> Thomas Schröpfer, <a href="https://amazee.ai/" target="_blank">amazee.ai</a> and <a href="https://www.drupal.org/u/hankvanzile" target="_blank">Hank VanZile</a>, Tag1</li>
</ul>
<div class="float-left mr-8 mb-2">
<div class="flex items-start gap-6 mb-4">
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/thomas-schroepfer.jpg" alt="Thomas Schröpfer" class="w-32 h-32 object-cover rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Thomas Schröpfer</figcaption>
</figure>
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/hank-vanzile.jpeg" alt="Hank VanZile" class="w-32 h-auto rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Hank VanZile</figcaption>
</figure>
</div>
<div class="flex items-center gap-4 mb-4">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/amazee-logo.png" alt="amazee.ai" class="h-14 w-auto" />
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/tag1-orange-logo.png" alt="Tag1 logo" class="h-10 w-auto" />
</div>
</div>
<p>Often, AI use inside a company was never approved by IT. It arrives through a browser extension, a personal account, a tool someone tried because it saved them an afternoon, and it stays out of the security review until something goes wrong. That is shadow AI. Thomas and I walk through an alternative: a private AI gateway that gives an organization visibility into how AI is being used without pushing teams off the tools they like or slowing them down. My part is how Scolta uses <a href="http://amazee.ai/">amazee.ai</a>'s private AI infrastructure to add secure AI capabilities across Drupal, Laravel, and WordPress, so the AI a site needs does not come with the governance gaps shadow AI opens. If this is a challenge your organization is facing, come find me after and we can compare notes.</p>
<h3>Wednesday, September 30</h3>
<h3><a href="https://events.drupal.org/rotterdam2026/session/rebuilding-lms-mid-flight-drupal-success-story-aft-and-afl-cio" target="_blank">Rebuilding the LMS Mid-Flight: A Drupal Success Story with AFT and AFL-CIO</a></h3>
<img loading="lazy" decoding="async" class="float-left mr-8 mb-2 w-32 h-auto" src="https://www.tag1.com/img/insights/content/marcin-grabias.jpg" alt="Marcin Grabias" />
<ul>
<li><strong>Location:</strong> Mees Room I</li>
<li><strong>When:</strong> 10:45-11:30 CEST</li>
<li><strong>Speaker:</strong> <a href="https://www.drupal.org/u/Graber" target="_blank">Marcin Grabias</a></li>
</ul>
<p>Rebuilding a live LMS is risky. Rebuilding it while it powers mission-critical training for organizations like the American Federation of Teachers and the AFL-CIO is even harder. This session takes you through that journey—from growing pains and technical debt to a fully reimagined Drupal-native solution—sharing the lessons learned along the way.</p>
<h3><a href="https://events.drupal.org/rotterdam2026/session/inside-pyramid-path-faster-clearer-drupal-testing" target="_blank">Inside the Pyramid - A path to faster, clearer Drupal testing</a></h3>
<img loading="lazy" decoding="async" class="float-left mr-8 mb-2 w-32 h-auto" src="https://www.tag1.com/img/insights/content/francesco-placella.jpg" alt="Francesco Placella" />
<ul>
<li><strong>Location:</strong> Penn Room I&amp;II</li>
<li><strong>When:</strong> 11:40-12:25 CEST</li>
<li><strong>Speaker:</strong> <a href="https://www.drupal.org/u/Plach" target="_blank">Francesco Placella</a></li>
</ul>
<p>The test pyramid has been a cornerstone of software quality for decades, yet Drupal core has no formal guidelines instructing contributors how to write automated tests. This session will cover both the current state – discussing techniques to write faster tests – and how to change Drupal to make these improvements structural.</p>
<h3><a href="https://events.drupal.org/rotterdam2026/session/joyful-tour-through-cli-now-drupal-core" target="_blank">A joyful tour through the CLI now in Drupal Core</a></h3>
<img loading="lazy" decoding="async" class="float-left mr-8 mb-2 w-32 h-auto" src="https://www.tag1.com/img/insights/content/moshe-weitzman.jpeg" alt="Moshe Weitzman" />
<ul>
<li><strong>Location:</strong> Penn Room I&amp;II</li>
<li><strong>When:</strong> 13:40-14:00 CEST</li>
<li><strong>Speaker:</strong> <a href="https://www.drupal.org/u/moshe-weitzman" target="_blank">Moshe Weitzman</a></li>
</ul>
<p>It finally happened! A CLI in Drupal core. With the help and blessing of the Drush maintainers, Drupal core has gained its own extensible CLI. Learn how to use it, and develop and test commands for it.</p>
<div class="callout-box">
<h2>Client Spotlight</h2>
<h3><a href="https://events.drupal.org/rotterdam2026/session/scolta-drop-ai-search-without-search-server" target="_blank">Scolta: Drop-in AI Search Without a Search Server</a></h3>
<ul>
<li><strong>Location:</strong> Mees Room II</li>
<li><strong>When:</strong> 14:45-15:30 CEST</li>
<li><strong>Speakers:</strong> Kelly Booz, <a href="https://sharemylesson.com/" target="_blank">AFT Share My Lesson</a> and <a href="https://www.drupal.org/u/Jeremy" target="_blank">Jeremy Andrews</a>, Tag1</li>
</ul>
<div class="float-left mr-8 mb-2">
<div class="flex items-start gap-6 mb-4">
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/kelly-booz.jpg" alt="Kelly Booz" class="w-32 h-auto rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Kelly Booz</figcaption>
</figure>
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/jeremy-andrews.jpeg" alt="Jeremy Andrews" class="w-32 h-auto rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Jeremy Andrews</figcaption>
</figure>
</div>
<div class="flex items-center gap-4 mb-4">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/sml-logo.png" alt="Share My Lesson logo" class="h-14 w-auto" />
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/tag1-orange-logo.png" alt="Tag1 logo" class="h-10 w-auto" />
</div>
</div>
<p>What if you could replace Solr with something that runs in the browser, costs almost nothing, and delivers better results out of the box? Scolta is an open source search toolkit that does exactly that: client-side search powered by Pagefind, with an AI layer for query expansion and summaries.</p>
<div class="clear-both"></div>
</div>
<h3><a href="https://events.drupal.org/rotterdam2026/session/how-we-made-biggest-performance-gains-decade-drupal-core" target="_blank">How we made the biggest performance gains in a decade in Drupal core</a></h3>
<img loading="lazy" decoding="async" class="float-left mr-8 mb-2 w-32 h-auto rounded border border-navy-300" src="https://www.tag1.com/img/insights/content/nathaniel-catchpole.jpg" alt="Nathaniel Catchpole" />
<ul>
<li><strong>Location:</strong> Van Oldenbarnevelt Room</li>
<li><strong>When:</strong> 14:45-15:30 CEST</li>
<li><strong>Speaker:</strong> <a href="https://www.drupal.org/u/catch" target="_blank">Nathaniel Catchpole</a></li>
</ul>
<p>Drupal 11.4 reduced database queries and cache I/O by around 50% compared to Drupal 11.0, as well as various front end performance improvements. This session will explain how we got there and give you tips for applying these techniques to your own site.</p>
<h3><a href="https://events.drupal.org/rotterdam2026/session/ai-powered-site-building-drupal-blank-site-styled-pages-conversation" target="_blank">AI-Powered Site Building in Drupal: From Blank Site to Styled Pages in a Conversation</a></h3>
<div class="float-left mr-8 mb-2 flex items-start gap-6">
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/francesco-pesenti.jpg" alt="Francesco Pesenti" class="w-32 h-32 object-cover rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Francesco Pesenti</figcaption>
</figure>
<figure class="text-center m-0 w-32">
<img loading="lazy" decoding="async" src="https://www.tag1.com/img/insights/content/francesco-quagliati.jpeg" alt="Francesco Quagliati" class="w-32 h-32 object-cover rounded border border-navy-300" />
<figcaption class="mt-1 text-sm font-semibold">Francesco Quagliati</figcaption>
</figure>
</div>
<ul>
<li><strong>Location:</strong> Leeuwen Room I&amp;II</li>
<li><strong>When:</strong> 16:00-16:45 CEST</li>
<li><strong>Speakers:</strong> <a href="https://www.drupal.org/u/peximo" target="_blank">Francesco Pesenti</a>, <a href="https://www.drupal.org/u/francescoq" target="_blank">Francesco Quagliati</a></li>
</ul>
<p>Building a complete Drupal site demands expertise across content types, taxonomy, menus, block configuration, and styling. What if a non-technical user could describe what they need in plain language and get back fully structured, styled pages, then refine everything through conversation?</p>
<div class="clear-both"></div>
<h2>Come Find Us</h2>
<p>A lot of the work in these talks usually sits out of sight, in performance, testing, and the plumbing of AI workflows, so a week like this is one of the few times it surfaces all at once. If any of it is close to what you're working on, catch me or any of the team between sessions and let's talk. We would love to hear about the hard problems you're working to solve.</p>
]]></description>
      <pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Hank VanZile</dc:creator>
      <guid>https://www.tag1.com/blog/drupalcon-rotterdam2026/</guid>
    </item>
    
    
    <item>
      <title>Optimizing Drupal Core CI</title>
      <link>https://www.tag1.com/blog/optimizing-drupal-core/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#%20nathaniel-catchpole">Nathaniel Catchpole</a>, Tag1 Senior Performance Engineer and Technical Lead, Drupal core framework and release manager and contributor, walks through how Drupal core's CI pipelines dropped from around 55 minutes to 5 to 7 minutes, and the installer and test optimizations now reducing the CI minutes behind the Drupal Association's infrastructure costs. 
    </div>
</div>
</div>
<p>At DrupalCon Vienna, <a href="https://www.youtube.com/watch?v=HV0GCdhX-3c" target="_blank">Tim Lehnen presented on the main costs for running Drupal.org.</a> Around 50% of the total cost of running <a href="https://www.drupal.org/" target="_blank">drupal.org</a>, or approximately $1.5m, is infrastructure costs. A significant slice of infrastructure costs comes from <a href="http://drupal.org/">drupal.org</a>'s self-hosted GitLab, and in turn much of that cost is due to GitLab CI for Drupal core and contributed modules.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/engineering-funding.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/engineering-funding.png" alt="Diagram that explains how drupal engineering activies copare to the available funding sources." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 1: Drupal Engineering activities compared to the various funding sources</figcaption>
</figure><p></p>
<p>Drupal core is the single biggest project in terms of CI minutes, both due to the sheer number of tests as well as the level of activity in Drupal core issues, with hundreds of commits per month and activity on thousands of issues and Merge Requests (&quot;MRs&quot;).</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/drupal-ci-minutes.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/drupal-ci-minutes.png" alt="Bar chart displaying drupal CI minutes by project." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 2: Drupal CI minutes by project, July 2026, core issue forks are treated as separate projects</figcaption>
</figure><p></p>
<p>Since Drupal originally moved to Gitlab CI from our previous Jenkins-based CI infrastructure in 2023, we've been working on reducing the time taken for Drupal core test runs.</p>
<p>The primary end goal of this work was to reduce the wall time for pipelines on MRs. These started at around 55 minutes when we originally moved to Gitlab CI (approximately the same as they were on Drupal CI), and now generally finish in 5-7 minutes. The 55 minute runtimes already relied on previous known optimizations like using a ramdisk for both the database and filesystem, applied to GitLab runners. GitLab does not support this out of the box.</p>
<p>Five minute turnaround times on pipelines have made a huge difference to Drupal core velocity. Whereas core contributors used to push to a branch, then go and eat lunch or dinner while waiting for the pipeline to finish, there's now barely enough time to make a cup of coffee, let alone drink it.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/smustgrave-slack-msg.png" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/smustgrave-slack-msg.png" alt="A screenshot of a contributor explaining that while waiting on the pipleline they didn't even have time to grab a cup of coffee before it finished because it was so fast." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 3: Contributors recognizing and commenting on the time improvement of waiting for the pipeline to finish</figcaption>
</figure><p></p>
<p>However, the bulk of the initial gains we made to core CI pipeline performance was in wall time, with much less impact on CPU minutes. This is now starting to change, as we're finding ways to reduce the CPU minutes while also keeping wall times as short as possible.</p>
<h2>Reducing Pipeline Wall Times</h2>
<p>We reduced pipeline wall times via the following approaches.</p>
<h3>Concurrent Test Running and Parallel CI Jobs</h3>
<p>Drupal's <code>run-tests.sh</code> has supported running tests concurrently for a long time. We added support for Gitlab's parallel test runs, splitting test groups with thousands of tests into smaller groups so that they can be run on multiple test runners at once. For example Drupal's functional test group is executed in 8 parallel jobs, at 15 concurrency, with a CPU request of 10 per job. This runs 150 test classes at a time on 100 CPUs. By running smaller sized individual jobs, there is also a higher chance of them fitting into test runners that become available rather than requiring a new AWS instance to be spun up.</p>
<h3>Slowest Tests Run First</h3>
<p>Tests are always run slowest first. Drupal's test runner has supported a <code>#slow</code> group for a long time, so that very slow tests can be run first. We now also order tests by the number of methods, so that tests with more methods, which overall tend to be slower, run first too. This is critical for other optimizations to be effective. If a single class takes three minutes to run, starting it at the beginning when the rest of the tests can also be completed in three minutes means the entire test run can be finished in three minutes. But if that job started last, the job could take six minutes, with just that one test being run for half the time, leading to slower wall times and idle CPUs.</p>
<h3>Optimize or Split Up the Very Slowest Tests</h3>
<p>In some cases we have had individual test classes that took more than 10 minutes to run. For these very slow running tests, we've split them into smaller test classes so that they can be run in parallel, and/or optimized the test set-up requirements so that no individual test takes longer than a full run.</p>
<h2>Reducing CPU Time for Test Pipelines</h2>
<p>With these techniques, we've been able to balance CPU requests and concurrency across the various core test types, so that every job finishes within approximately 3-4 minutes. This has given us a solid framework for keeping pipeline wall times to a minimum while allowing us to adjust CPU requests and concurrency for individual test types to match the scope of core's overall test coverage. As far as we know there are no longer obvious optimizations to make via tweaking concurrency and test running order.</p>
<p>While we've been working on optimizing the tests themselves, in recent months focus is increasingly shifting in that direction as the best way to further optimize test runtimes, but more importantly, reduce CI minutes and the resulting infrastructure cost for the Drupal Association overall.</p>
<h3>Test Types</h3>
<p>Drupal core started with only one type of test: SimpleTest 'functional tests' that require a full Drupal install into a separate site that the tests are then run against. Over time with the adoption of PHPUnit, we've added unit tests, 'kernel tests' which include a full dependency injection container but don't do a full install, functional JavaScript tests which use a real browser, and build tests which allow creation of a completely separate code base in its own directory. There is an <a href="https://www.drupal.org/project/drupal/issues/3041700" target="_blank">ongoing effort</a> to convert functional tests to kernel and unit tests where this can be done without losing test coverage, with the <a href="https://www.drupal.org/node/3502609" target="_blank">recent addition of http request testing to kernel tests</a> making many more tests eligible. Converting a functional test to a kernel test can reduce the time it takes by 3/4, so for the tests where this is possible it's one of the most effective ways to make gains, although the conversions have to happen test by test across dozens or hundreds of test classes.</p>
<p>Over the past couple of years there has been a concerted effort to improve Drupal core performance. Many runtime performance improvements don't necessarily make a lot of difference to test runtimes as a whole. But because functional and functional JavaScript tests install a full Drupal site and request real pages, anything which improves installer or cold cache performance tends to have an outsized effect on test runs. Installer performance generally doesn't affect production sites (because they're already installed!) and cold cache performance is often not a priority for production sites because it tends to affect a low percentage of overall requests, however as well as CI times, it can also make huge differences to the user experience for new users as well as improving responsiveness after deployments and cache clears.</p>
<h3>Installer Improvements for Functional Tests</h3>
<p>In 11.2.0, we changed module install to support installing multiple modules at once without a separate dependency injection container rebuild between each module. Instead of doing 50 or 60 container rebuilds during an install, we do more like 11 or 12. This took tens of seconds off Drupal installs, whether via the UI, Drush, or during test runs.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/InstallingModulesDrupal112.gif" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/InstallingModulesDrupal112.gif" alt="Side by side installation of 60 modules between Drupal 11.1.0 and 11.2.0." />
</a>
<figcaption class="italic text-[var(--text-color)]">Figure 4: Installing multiple modules in Drupal 11.2</figcaption>
</figure><p></p>
<p>Source: <a href="https://www.drupal.org/files/InstallingModulesDrupal112.gif" target="_blank">Figure 4: Installing multiple modules in Drupal 11.2.</a></p>
<p>In Drupal 11.4, we made <a href="https://www.drupal.org/project/drupal/issues/3571994" target="_blank">container rebuilds during the installer more conditional, reducing</a> container rebuilds during a functional test from 11 to 8.</p>
<p>Recently, I've been <a href="https://www.drupal.org/node/3615979">looking at whether it would be possible to reduce the 8 remaining container rebuilds further</a>, without necessarily an expectation that there would be much room for improvement, and found some. With all of those changes, some of which are not committed yet, we should be able to get down to an absolute minimum of 2 container rebuilds in tests. While some of the optimizations are test-specific, a real-life Drupal install of the minimal profile takes less than 2 seconds.</p>
<p>This investigation also uncovered further possible performance improvements in the installer.</p>
<p>While the combination of these changes probably saves only around 5 seconds at most from an install during a test run, this saving is multiplied by every install that occurs, with thousands of Drupal installs on every test run, this adds up to several minutes of CI time.</p>
<p>This has already allowed us to reduce the total CPU request for functional tests from 128 to 80 with no increase in wall time. We expect to be able to reduce the CPU request for both functional and functional JavaScript tests further once more optimizations land.</p>
<h3>Kernel Test Performance Improvements</h3>
<p>Kernel tests in general run much faster than functional tests, however there is still a per-method overhead which is a lot higher than unit tests. We are looking at adding an option to kernel tests to <a href="https://www.drupal.org/project/drupal/issues/1411074" target="_blank">share the database state between test methods</a> which will remove a lot of that overhead. This in turn will allow us to <a href="https://www.drupal.org/project/drupal/issues/3613347" target="_blank">re-use the dependency injection container between methods</a>. As we move functional tests to kernel tests, this should increase the impact of that change on resource usage even more.</p>
<h2>Re-Evaluating On-Commit Pipelines</h2>
<p>Drupal core has daily, weekly, and on-commit jobs on its branches, as well as those that run on individual MRs. In looking at the information we get from those jobs, we realised that the on-commit jobs, which on average run several times per day, and run the full test suite against multiple different database types (Mysql, MariaDB, SQlite, PostgreSQL) don't necessarily give us information that we can't otherwise get from MR, daily and weekly runs. For release branches, we need immediate post-commit feedback in case something is unexpectedly broken, which sometimes happens when two independent commits are fine individually, don't have merge conflicts, but break when combined anyway. However, we're in the process of trialling running our development branches without on-commit pipelines whatsoever. This should reduce CI minutes for core purely via running pipelines less often, on top of the in-pipeline optimizations above.</p>
<h2>Reducing Wall Time for Contrib CI Runs</h2>
<p>While individual contrib projects are not the biggest user of CI minutes, there are thousands of contributed projects. Several of the performance optimizations for the installer, functional tests, and kernel tests will apply to contributed module tests too, since those have to install core the same way as core tests do.</p>
<p>Additionally, there has been recent work to switch contrib's gitlab_templates shared pipeline definitions to running concurrent tests by default. Contrib tests previously used raw phpunit which runs each test sequentially with an option to switch to concurrent test running via <code>run-tests.sh</code>; the default <a href="https://git.drupalcode.org/project/gitlab_templates/-/work_items/3447087" target="_blank">flipped to run-tests.sh</a> by default in September 2026. Because contrib tests should also benefit from core's 'slowest test first' strategy, this should compress pipeline times in contrib and it may have a positive impact in reducing CI minutes overall if runners are able to complete jobs in a shorter time with the same CPU request.</p>
<h2>Effect on the Drupal Association's Hosting Costs</h2>
<p>Taken together, these changes lower the cost of running core's CI run by run, through shorter wall times, fewer CPU minutes, and fewer pipelines overall. As Figure 2 shows, core is the single biggest consumer of CI minutes on <a href="http://drupal.org/">drupal.org</a>, so that work is aimed at the largest single driver of the GitLab CI costs behind the Drupal Association's infrastructure bill.</p>
<p>What that adds up to on the bill itself is a separate measurement, and will take longer to validate. Total cost depends not only on the cost per run but on how many runs happen, and core activity (commits, issues, and merge requests) is holding steady or rising. So the effect on the DA's hosting costs has to be read from same-month comparisons year over year, or averages across several months, rather than any single snapshot. We’ll be keeping a close eye on this as the latest round of changes are committed.</p>
]]></description>
      <pubDate>Thu, 17 Sep 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Nathaniel Catchpole</dc:creator>
      <guid>https://www.tag1.com/blog/optimizing-drupal-core/</guid>
    </item>
    
    
    <item>
      <title>A Warm Afterglow from Laracon US 2026</title>
      <link>https://www.tag1.com/blog/laracon-us-2026-recap/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[<div style="--border-color: rgba(21, 120, 124, 0.5);"> 
<div class="border border-[var(--border-color)] relative my-12 " x-data="{
     boxId: $id('summary-box'),
     buttonId: $id('summary-box-button'),
     contentId: $id('summary-box-content'),
     isCollapsible: true,
     isOpen: false,
     toggle() {
         if (this.isCollapsible) {
             this.isOpen = !this.isOpen;
         }
     },
    }">
    <button type="button" x-bind:id="buttonId" class="w-full py-4 pl-4 flex items-center text-left" x-bind:class="{ 'pr-16': isCollapsible, 'pr-4': !isCollapsible }" x-on:click="toggle()" x-on:keyup.enter.prevent="toggle()" x-on:keyup.space.prevent="toggle()" x-bind:aria-expanded="isOpen" x-bind:aria-controls="contentId" x-bind:disabled="!isCollapsible">
        <h2 class="component text-xl font-text font-medium text-[var(--accent-color)]">Take Away</h2>
        <span x-show="isCollapsible" class="absolute top-1/2 right-4 -translate-y-1/2 flex items-center text-[var(--accent-color)] transition-transform duration-200" x-bind:class="{ 'rotate-180': isOpen }">
            <svg width="16" height="24" viewBox="0 0 16 24" xmlns="http://www.w3.org/2000/svg" class="rotate-90" aria-hidden="true">
                <path d="M0.753906 19.5016L4.49456 23.2456L15.7549 11.7451L4.49456 0.244572L0.753905 3.98965L8.41815 11.7461L0.753906 19.5016Z" fill="currentColor"></path>
            </svg>
        </span>
    </button>
    <div x-bind:id="contentId" role="region" x-bind:aria-labelledby="buttonId" x-show="isOpen || !isCollapsible" x-transition:enter="transition-opacity duration-500 ease-out motion-reduce:duration-0" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="pl-4 pr-20 md:pr-25 2xl:pr-32 pt-4 pb-4 text-lg font-text text-[var(--accent-color)] text-formatted">
         <a href="https://www.tag1.com/team/#moshe-weitzman">Moshe Weitzman</a>, Sr. Architect & Project Lead at Tag1 and the first American to contribute to the Drupal platform, attended LaraCon US 2026 in Boston and shares the concrete takeaways. 
    </div>
</div>
</div>
<p><a href="https://laracon.us/" target="_blank" rel="noopener noreferrer">Laracon US</a> came to my hometown of Boston this year, and a few weeks later I'm still glowing. Here are the moments that stuck with me.</p>
<h2>Whimsy-Driven Development</h2>
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="2oUu9-jW6mg" playlabel="Play: Whimsy-Driven Development, Christina Martinez at Laracon US 2026"></lite-youtube>
<p></p>
<p>My favorite session was <a href="https://www.youtube.com/watch?v=2oUu9-jW6mg" target="_blank" rel="noopener noreferrer">Whimsy-Driven Development</a> by Christina Martinez. Watch it if you want to rekindle the joy of building software. We can build anything we can imagine today, and Christina gives us permission and encouragement to do exactly that. I joined her <a href="https://www.sillysoftware.club/" target="_blank" rel="noopener noreferrer">Silly Software Club</a> on the spot. I haven't built any silly software yet, but I did make a silly image announcing my blended family's upcoming vacation to Mexico.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/akumal-26.jpg" target="_blank">
<img class="mx-auto  border-[var(--border-color)] border-2" src="https://www.tag1.com/img/insights/content/akumal-26.jpg" alt="Moshe's family beach photo, mariachi-style: sombreros, guitars" />
</a>
<figcaption class="italic text-[var(--text-color)]">Moshe's family beach photo, mariachi-style: sombreros, guitars. Akumal 26' Mas guacamole por favor.</figcaption>
</figure><p></p>
<h2>The Vibes</h2>
<p>The day after Laracon wrapped, I attended <a href="https://nativephp.com/blog/the-vibes" target="_blank" rel="noopener noreferrer">The Vibes</a>, a daylong summit about <a href="https://nativephp.com/" target="_blank" rel="noopener noreferrer">NativePHP</a>. NativePHP is an epic piece of software that lets PHP developers build fully native mobile apps, with <a href="https://nativephp.com/docs/mobile/4/architecture/super-native">no web view required</a>. What I loved most was the kindness and enthusiasm of the project's leaders, Simon Hamp and Shane Rosenthal, who walked us through NativePHP like proud parents. The pride was earned. If anyone has a silly mobile app idea, <a href="https://drupal.org/user/23/contact" target="_blank" rel="noopener noreferrer">let's build it together</a>.</p>
<p></p><figure class="component my-10 grid gap-4">
<a href="https://www.tag1.com/img/insights/content/the-vibes-logo.svg" target="_blank">
<img class="mx-auto " src="https://www.tag1.com/img/insights/content/the-vibes-logo.svg" alt="The Vibes logo" />
</a><p></p>
<p></p></figure><p></p>
<h2>Laravel and Drupal, Compared</h2>
<p>I spend most of my time in the Drupal world, so I couldn't help comparing. The two projects have a lot in common: both are mature open source projects with deep communities. Drupal launched in 2001 and Laravel in 2011, making them 25 and 15 years old. I think Laravel's velocity outpaces Drupal core's. Drupal has more contributors, yet somehow ships less. Some of that is by design: Drupal core emphasizes process: coding standards, esoteric workflows (like issue forks), code review gates, strong backward compatibility. That discipline has real benefits, and it attracts contributors who value it, though others gravitate toward contrib, where the pace is faster. Laravel, by contrast, runs on a <a href="https://www.youtube.com/shorts/eoxn7Jd571Q" target="_blank" rel="noopener noreferrer">&quot;we must ship&quot;</a> mantra. There's something to learn from both cultures. I commend Taylor Otwell for his relentless focus on shipping. It's paying off.</p>
<link rel="stylesheet" href="https://www.tag1.com/css/lite-yt-embed.css" />
<script src="https://www.tag1.com/js/lite-yt-embed.js"></script>
<lite-youtube videoid="eoxn7Jd571Q" playlabel="Play: We Must Ship, Taylor Otwell"></lite-youtube>
<hr />
<p>Image credit: <a href="https://www.meetboston.com/" target="_blank" rel="noopener noreferrer">Meet Boston</a></p>
]]></description>
      <pubDate>Wed, 26 Aug 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Moshe Weitzman</dc:creator>
      <guid>https://www.tag1.com/blog/laracon-us-2026-recap/</guid>
    </item>
    
    
    <item>
      <title>Drupal Workspaces FAQ</title>
      <link>https://www.tag1.com/white-paper/drupal-workspaces-faq/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=planet_drupal</link>
      <description><![CDATA[
<p><strong class="text-purple">Traditional content staging servers have had their day.</strong> At DrupalCon Chicago
  2026, Tag1's Peta Hoyes and Ray Stuart (presenting for Fabian Franz) made that case and showed exactly what replaces
  them. Their session, <a href="https://www.tag1.com/conference-sessions/drupalcon-2026-chicago-workspaces/"><em>Workspaces
      is Revolutionizing Drupal Core: Unlock True Enterprise Content Management in Drupal</em></a>, covered the core
  architecture, live demos, and a Q&amp;A with the room.</p>

<p>We have expanded and organized the questions from that session into a standalone reference on how Workspaces works
  for
  enterprise content teams.</p>







<aside class="callout-cta my-10 p-4 xl:p-8 bg-purple text-white" style="--link-color: var(--color-turquoise); --decoration-color: var(--color-turquoise);">
    <div class="py-11 xl:py-8 px-4 xl:px-8 frame frame-white-35">
        <div class="relative z-10 mt-0 sm:text-xl">Want the full session? <a class="group underline hover:no-underline focus:no-underline" href="https://www.tag1.com/conference-sessions/drupalcon-2026-chicago-workspaces/">Watch the full recording.<span aria-hidden="true"> ></span></a></div>
    </div>
</aside>


<h2>Getting Started: What Workspaces Is and How to Turn It On</h2>

<div>
    <h3 id="what-is-workspaces">What is Workspaces?</h3>
    <div><p>Workspaces is enterprise content staging built into Drupal core. It lets a privileged user
  preview a large set of changes exactly as a site visitor will see them, then publish the whole set at the click of a
  button. Instead of maintaining a separate staging site, each workspace is an isolated set of staged changes that
  layers on top of your live site. You stage, collaborate, and publish without touching production until you are ready.
</p>

<p>Workspaces has been stable in Drupal core since version 10.3 (June 2024) and ships with every Drupal 11 installation.
  It is no longer experimental. It is core infrastructure, and it is free and open source.</p></div>
</div>

<div>
    <h3 id="how-do-you-get-started">How do you get started?</h3>
    <div><p>Core Workspaces turns on with a single command that most Drupal teams already know:</p>

<pre><code>drush en workspaces</code></pre>

<p>For enterprise use, you also want Workspaces Extra (WSE), which installs the same way most contributed modules do:
</p>

<pre><code>composer require drupal/wse</code></pre>

<p>That is a low barrier to entry for enterprise capability out of the box.</p></div>
</div>

<div>
    <h3 id="what-does-wse-workspaces-extra-add-on-top-of-core">What does WSE (Workspaces Extra) add on top of core?</h3>
    <div><p>If core workspaces are content branches, WSE is closer to the full deployment pipeline you
  already have for code. WSE
  adds scheduled publishing, preview links for external stakeholders, rollback of an entire published workspace, access
  control, menu staging, task monitoring, and the ability to move content between workspaces when needed. WSE Config
  stages configuration changes alongside content, and WSE Theme lets you preview an entirely different theme staged in a
  workspace.</p></div>
</div>

<div>
    <h3 id="i-already-know-git-how-should-i-think-about-workspaces">I already know git. How should I think about Workspaces?</h3>
    <div><p>If you understand feature branches, you already understand Workspaces. The mental model maps
  almost exactly:</p>

<ul>
  <li>Your Drupal site is the repository.</li>
  <li>A workspace is a branch.</li>
  <li>Live is the main branch.</li>
  <li>Saving content is a commit.</li>
  <li>Previewing a workspace is your working copy.</li>
  <li>Publishing is a merge.</li>
</ul>

<p>The workflow is the same one developers take for granted: create a branch for your campaign, make your changes,
  preview the complete state, get approval, then publish. Content teams simply have not had this tooling until now. As
  the session put it, if your dev team would not ship code without branches, why would your content team ship content
  without workspaces?</p></div>
</div>

<h2>The Core Problem: Why Enterprise Teams Still Struggle with Content Management</h2>

<div>
    <h3 id="what-do-we-mean-by-true-enterprise-content-management">What do we mean by true enterprise content management?</h3>
    <div><p>For a CMS to truly meet enterprise requirements, it needs to provide tools for both creating
  content and managing the end-to-end governance of that content. Content governance covers everything from procedures
  to technology that a complex organization needs to make sure its content meets its standards for brand, legal compliance, and
  accessibility. There can be a lot of content stakeholders with diverse concerns. Strong content governance is what
  stops all of that from devolving into chaos.</p>

<p>Drupal has been working toward this in core for a long time: granular user roles, workflows, content moderation in
  Drupal 8. With Workspaces in core, Drupal has closed another major governance gap. Content staging and review in the
  CMS.
</p></div>
</div>

<div>
    <h3 id="why-is-content-staging-and-review-in-context-more-important-than-ever">Why is content staging and review in context more important than ever?</h3>
    <div><p>Modern enterprise websites are composable. Content comes from multiple systems, dynamically laid out in the CMS, with
  edits and updates automatically propagating across the site. The governance of large-scale changes (adding new
  products, migrating a department, launching a campaign) needs to happen in the context of the overall site, with all
  the pieces of the puzzle present. Until Workspaces, Drupal hasn't had a clean solution for that.</p></div>
</div>

<div>
    <h3 id="what-about-the-impact-on-the-people-who-need-to-manage-content">What about the impact on the people who need to manage content?</h3>
    <div><p>External staging sites mean content managers work in two or more places. And what most content
  managers do not love is remembering which autogenerated subdomain from a git branch ID is the one they are supposed to be updating.
  Workspaces keeps everything inside a single Drupal installation.</p></div>
</div>

<h2>The Reality of Modern Drupal: Complexity Behind the Scenes</h2>

<div>
    <h3 id="what-happens-when-you-need-to-stage-more-than-one-set-of-updates-at-a-time">What happens when you need to stage more than one set of updates at a time?</h3>
    <div><p>More staging usually means more problems. With traditional staging servers, each parallel
  workstream typically means another environment, another subdomain, another database sync, and another deployment
  pipeline to track. Workspaces eliminates that. Each workspace is isolated, teams can work in parallel, and there is no
  artificial limit on concurrent campaigns or content initiatives. Tag1 has tested workspaces with more than a thousand
  entities changed in a single workspace.</p></div>
</div>

<div>
    <h3 id="if-changes-are-happening-on-live-while-i-work-in-a-workspace-can-i-pull-those-changes-in">If changes are happening on live while I work in a workspace, can I pull those changes in?</h3>
    <div><p>Think of a workspace as a shallow copy. Only the changes you explicitly make are tracked in the
  workspace. If someone modifies different content directly on live, those changes are not in your workspace and will
  not be overridden when you publish. Your workspace only ever contains what you put there. The one edge case is the
  same entity being modified in both places, which Workspaces intentionally prevents (see the collaboration section
  below).</p></div>
</div>

<h2>Governance and Control: Who Sees What, and When?</h2>

<div>
    <h3 id="how-do-you-deal-with-permissions-for-users-who-should-not-see-work-happening-in-workspaces">How do you deal with permissions for users who should not see work happening in workspaces?</h3>
    <div><p>Each workspace is isolated with granular permissions. Design, content, legal, and translation
  teams can work in parallel workspaces without visibility into each other's work unless it is deliberately shared.</p></div>
</div>

<div>
    <h3 id="can-previews-be-shared-with-external-reviewers-including-anonymous-users-and-how-does-that-work-with-permissions">Can previews be shared with external reviewers, including anonymous users, and how does that work with permissions?</h3>
    <div><p>Yes. WSE preview links handle this. Create a dedicated role with preview access, assign it to the
  reviewer, and share
  the link. The reviewer does not need a full Drupal account, so this works for anonymous users too. The workflow is
  straightforward: prepare the role, generate the preview link, share it.</p></div>
</div>

<h2>Infrastructure and Performance: Will This Break What Already Works?</h2>

<div>
    <h3 id="if-i-have-a-cdn-or-varnish-cache-will-workspaces-need-anything-extra">If I have a CDN or Varnish cache, will Workspaces need anything extra?</h3>
    <div><p>No. There are no changes to your anonymous content delivery. The active workspace is live 100
  percent of the time for anonymous users, so the workspace system is invisible to them. The same caching setup that
  works for your anonymous visitors keeps working. The only thing to confirm is that your configuration is appropriate
  for the content editors using the site, which is standard practice.</p></div>
</div>

<div>
    <h3 id="how-about-performance">How about performance?</h3>
    <div><p>This is the most important architectural property of Workspaces. When the active workspace is
  live, which it is 100 percent of the time for anonymous users, the workspace system is invisible, and your production
  site performs exactly as if Workspaces did not exist. That has been true since the architecture was first built in the
  Content Preview System (CPS) in 2014, and it is why Workspaces has run on some of the highest-traffic sites in the
  world for over a decade. Inside a workspace there is some overhead, but that is editorial traffic, a tiny fraction of
  your total load. Editors get a full-site preview, and visitors get full production speed.</p></div>
</div>

<h2>Content Safety and Security</h2>

<div>
    <h3 id="if-public-files-are-uploaded-inside-a-workspace-are-they-accessible-to-users-who-know-the-url">If public files are uploaded inside a workspace, are they accessible to users who know the URL?</h3>
    <div><p>Yes. File entities in Drupal aren't revisionable, so the Workspaces module can't scope a file to
  a workspace the way
  it scopes nodes. The moment a file is uploaded to <code>public://</code>, it's written to the default live storage in
  <code>sites/default/files</code> and served directly by the web server, with no Drupal access check in the request
  path.</p>

<p>So even when the node or media entity that references the file lives only in an unpublished workspace, the file
  itself
  is already on disk and reachable at its direct URL by anyone who has or guesses it. Publishing state doesn't gate it.
  Public means public, and only the obscurity of the filename keeps it from being found.</p>

<p>If the file needs to stay private until publish, use a <code>private://</code> file field, which routes downloads
  through Drupal so
  access checks apply, or a module like File Unpublish, which keeps public files of unpublished media entities
  inaccessible until the entity is published.</p></div>
</div>

<h2>Configuration Management: The Gray Area Teams Care About</h2>

<div>
    <h3 id="how-does-wse-config-interact-with-drupals-configuration-exportimport-system">How does WSE Config interact with Drupal&#39;s configuration export/import system?</h3>
    <div><p>Once a workspace is published, whatever is live is what you would export, the same as always. For
  sites that manage
  configuration directly on the site rather than exporting it to code, this is largely a non-issue. For sites with
  strict configuration management workflows, WSE Config is still maturing (the session described it as almost production
  ready), so test it in a non-production environment before you rely on it in production.</p></div>
</div>

<h2>Collaboration and Conflict Management</h2>

<div>
    <h3 id="what-happens-when-two-people-edit-the-same-content-in-different-workspaces">What happens when two people edit the same content in different workspaces?</h3>
    <div><p>They cannot, and that is deliberate. Once an entity is modified in a workspace, it is tracked
  there, and another editor cannot modify it in a different workspace. This is a feature, not a limitation. Automatic
  merging of structured
  content fields, entity references, and media relationships leads to data corruption, and every system that has
  attempted it has run into fundamental issues.</p>

<p>Workspaces takes the same approach as a well-run development team: coordinate through communication. Shared
  workspaces let teams collaborate, content ownership keeps responsibilities clear, and WSE lets you move content
  between
  workspaces when needed. If content is locked, discarding the change frees it again. The absence of automatic merging
  is a safety
  guarantee: your workspace will never contain content you did not put there.</p></div>
</div>

<div>
    <h3 id="how-does-workspaces-handle-deleted-content">How does Workspaces handle deleted content?</h3>
    <div><p>Deleting content in a workspace is a special case, because the content needs to disappear from
  your workspace preview while staying visible on the live site until you publish. Workspaces solves this with the Trash
  module. Within the workspace, deleted content drops out of listings, views, and search results, but on the live site
  it remains visible until publish. Content deleted in a workspace stays recoverable until you publish, and this
  integration also removes an older constraint so that any entity type can participate in workspaces, not just those
  with a publication status.</p></div>
</div>

<h2>Content Moderation and Workflows</h2>

<div>
    <h3 id="how-does-workspaces-work-with-content-moderation-and-drupals-workflows">How does Workspaces work with content moderation and Drupal&#39;s workflows?</h3>
    <div><p>Workspaces integrates with Drupal's core Workflows module. You can move an entire workspace
  through workflow states such as draft, review, approved, and published, so the whole collection of changes moves
  through the approval process as a unit. Your legal team reviews the complete workspace, your content manager approves
  the entire set, and when it reaches the publish state the whole workspace deploys atomically. The Content Moderation
  and Workspaces integration is nearly complete, with one remaining issue to resolve in core, and the simplified content
  workflow initiative will make the two work together for more complex scenarios where different entities need different
  approval paths.</p></div>
</div>

<h2>Ecosystem and Future Considerations</h2>

<div>
    <h3 id="does-it-work-with-canvas">Does it work with Canvas?</h3>
    <div><p>Yes. Workspaces is compatible with Canvas. The implementation differs, because Workspaces aligns
  with the Layout
  Builder approach rather than Canvas's own, but the two work together.</p></div>
</div>

<div>
    <h3 id="why-is-workspaces-a-good-fit-for-ai-content-generation">Why is Workspaces a good fit for AI content generation?</h3>
    <div><p>Workspaces gives AI content generation the boundary it needs. AI content tools are scaling
  quickly, and Drupal's AI module integrates dozens of providers with automators that can bulk-populate fields, generate
  summaries, and translate content. But AI is non-deterministic: it can hallucinate and produce errors. Workspaces
  provides the natural safety architecture. Think of a workspace like a pure function: everything inside is safe and
  reversible with no side effects. An AI agent can generate content, edit fields, and populate entire sections inside a
  workspace, and nothing touches live until a human reviews the changes and publishes. The workspace diff makes that
  review straightforward. The result is governed automation, where AI helps and humans stay in control.</p></div>
</div>

<div>
    <h3 id="what-is-on-the-roadmap">What is on the roadmap?</h3>
    <div><p>The architecture is sound, and the remaining work is about closing the last gaps and proving the
  system in the wild. Content Moderation and Workspaces are nearly integrated, with one issue left in core. WSE Config,
  which stages configuration changes alongside content, is almost production ready. WSE Theme lets you preview an
  entirely different theme staged in a workspace. What the system needs most now is real-world testing: try it with your
  contrib modules, test it with your custom entity types, and report bugs when you find them. Every production
  deployment proves the architecture.</p></div>
</div>

<p>Workspaces is stable, it is in core, and it is the right architecture for content governance at scale, including AI
  content generation.</p>






<aside class="callout-cta my-10 p-4 xl:p-8 bg-purple text-white" style="--link-color: var(--color-turquoise); --decoration-color: var(--color-turquoise);">
    <div class="py-11 xl:py-8 px-4 xl:px-8 frame frame-white-35">
        <div class="relative z-10 mt-0 sm:text-xl">Ready to see it in action? <a class="group underline hover:no-underline focus:no-underline" href="https://www.tag1.com/conference-sessions/drupalcon-2026-chicago-workspaces/">Watch the full session recording.<span aria-hidden="true"> ></span></a></div>
    </div>
</aside>


<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "@id": "https://www.tag1.com/white-paper/drupal-workspaces-faq/",
  "name": "Drupal Workspaces FAQ",
  "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is Workspaces?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-is-workspaces",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Workspaces is enterprise content staging built into Drupal core. It lets a privileged user preview a large set of changes exactly as a site visitor will see them, then publish the whole set at the click of a button. Instead of maintaining a separate staging site, each workspace is an isolated set of staged changes that layers on top of your live site. You stage, collaborate, and publish without touching production until you are ready. </p> <p>Workspaces has been stable in Drupal core since version 10.3 (June 2024) and ships with every Drupal 11 installation. It is no longer experimental. It is core infrastructure, and it is free and open source.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How do you get started?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-do-you-get-started",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Core Workspaces turns on with a single command that most Drupal teams already know:</p> <pre><code>drush en workspaces</code></pre> <p>For enterprise use, you also want Workspaces Extra (WSE), which installs the same way most contributed modules do: </p> <pre><code>composer require drupal/wse</code></pre> <p>That is a low barrier to entry for enterprise capability out of the box.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What does WSE (Workspaces Extra) add on top of core?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-does-wse-workspaces-extra-add-on-top-of-core",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>If core workspaces are content branches, WSE is closer to the full deployment pipeline you already have for code. WSE adds scheduled publishing, preview links for external stakeholders, rollback of an entire published workspace, access control, menu staging, task monitoring, and the ability to move content between workspaces when needed. WSE Config stages configuration changes alongside content, and WSE Theme lets you preview an entirely different theme staged in a workspace.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "I already know git. How should I think about Workspaces?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#i-already-know-git-how-should-i-think-about-workspaces",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>If you understand feature branches, you already understand Workspaces. The mental model maps almost exactly:</p> <ul> <li>Your Drupal site is the repository.</li> <li>A workspace is a branch.</li> <li>Live is the main branch.</li> <li>Saving content is a commit.</li> <li>Previewing a workspace is your working copy.</li> <li>Publishing is a merge.</li> </ul> <p>The workflow is the same one developers take for granted: create a branch for your campaign, make your changes, preview the complete state, get approval, then publish. Content teams simply have not had this tooling until now. As the session put it, if your dev team would not ship code without branches, why would your content team ship content without workspaces?</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What do we mean by true enterprise content management?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-do-we-mean-by-true-enterprise-content-management",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>For a CMS to truly meet enterprise requirements, it needs to provide tools for both creating content and managing the end-to-end governance of that content. Content governance covers everything from procedures to technology that a complex organization needs to make sure its content meets its standards for brand, legal compliance, and accessibility. There can be a lot of content stakeholders with diverse concerns. Strong content governance is what stops all of that from devolving into chaos.</p> <p>Drupal has been working toward this in core for a long time: granular user roles, workflows, content moderation in Drupal 8. With Workspaces in core, Drupal has closed another major governance gap. Content staging and review in the CMS. </p>"
      }
    },
    {
      "@type": "Question",
      "name": "Why is content staging and review in context more important than ever?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#why-is-content-staging-and-review-in-context-more-important-than-ever",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Modern enterprise websites are composable. Content comes from multiple systems, dynamically laid out in the CMS, with edits and updates automatically propagating across the site. The governance of large-scale changes (adding new products, migrating a department, launching a campaign) needs to happen in the context of the overall site, with all the pieces of the puzzle present. Until Workspaces, Drupal hasn't had a clean solution for that.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What about the impact on the people who need to manage content?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-about-the-impact-on-the-people-who-need-to-manage-content",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>External staging sites mean content managers work in two or more places. And what most content managers do not love is remembering which autogenerated subdomain from a git branch ID is the one they are supposed to be updating. Workspaces keeps everything inside a single Drupal installation.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What happens when you need to stage more than one set of updates at a time?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-happens-when-you-need-to-stage-more-than-one-set-of-updates-at-a-time",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>More staging usually means more problems. With traditional staging servers, each parallel workstream typically means another environment, another subdomain, another database sync, and another deployment pipeline to track. Workspaces eliminates that. Each workspace is isolated, teams can work in parallel, and there is no artificial limit on concurrent campaigns or content initiatives. Tag1 has tested workspaces with more than a thousand entities changed in a single workspace.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "If changes are happening on live while I work in a workspace, can I pull those changes in?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#if-changes-are-happening-on-live-while-i-work-in-a-workspace-can-i-pull-those-changes-in",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Think of a workspace as a shallow copy. Only the changes you explicitly make are tracked in the workspace. If someone modifies different content directly on live, those changes are not in your workspace and will not be overridden when you publish. Your workspace only ever contains what you put there. The one edge case is the same entity being modified in both places, which Workspaces intentionally prevents (see the collaboration section below).</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How do you deal with permissions for users who should not see work happening in workspaces?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-do-you-deal-with-permissions-for-users-who-should-not-see-work-happening-in-workspaces",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Each workspace is isolated with granular permissions. Design, content, legal, and translation teams can work in parallel workspaces without visibility into each other's work unless it is deliberately shared.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "Can previews be shared with external reviewers, including anonymous users, and how does that work with permissions?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#can-previews-be-shared-with-external-reviewers-including-anonymous-users-and-how-does-that-work-with-permissions",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Yes. WSE preview links handle this. Create a dedicated role with preview access, assign it to the reviewer, and share the link. The reviewer does not need a full Drupal account, so this works for anonymous users too. The workflow is straightforward: prepare the role, generate the preview link, share it.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "If I have a CDN or Varnish cache, will Workspaces need anything extra?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#if-i-have-a-cdn-or-varnish-cache-will-workspaces-need-anything-extra",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>No. There are no changes to your anonymous content delivery. The active workspace is live 100 percent of the time for anonymous users, so the workspace system is invisible to them. The same caching setup that works for your anonymous visitors keeps working. The only thing to confirm is that your configuration is appropriate for the content editors using the site, which is standard practice.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How about performance?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-about-performance",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>This is the most important architectural property of Workspaces. When the active workspace is live, which it is 100 percent of the time for anonymous users, the workspace system is invisible, and your production site performs exactly as if Workspaces did not exist. That has been true since the architecture was first built in the Content Preview System (CPS) in 2014, and it is why Workspaces has run on some of the highest-traffic sites in the world for over a decade. Inside a workspace there is some overhead, but that is editorial traffic, a tiny fraction of your total load. Editors get a full-site preview, and visitors get full production speed.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "If public files are uploaded inside a workspace, are they accessible to users who know the URL?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#if-public-files-are-uploaded-inside-a-workspace-are-they-accessible-to-users-who-know-the-url",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Yes. File entities in Drupal aren't revisionable, so the Workspaces module can't scope a file to a workspace the way it scopes nodes. The moment a file is uploaded to <code>public://</code>, it's written to the default live storage in <code>sites/default/files</code> and served directly by the web server, with no Drupal access check in the request path.</p> <p>So even when the node or media entity that references the file lives only in an unpublished workspace, the file itself is already on disk and reachable at its direct URL by anyone who has or guesses it. Publishing state doesn't gate it. Public means public, and only the obscurity of the filename keeps it from being found.</p> <p>If the file needs to stay private until publish, use a <code>private://</code> file field, which routes downloads through Drupal so access checks apply, or a module like File Unpublish, which keeps public files of unpublished media entities inaccessible until the entity is published.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How does WSE Config interact with Drupal's configuration export/import system?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-does-wse-config-interact-with-drupals-configuration-exportimport-system",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Once a workspace is published, whatever is live is what you would export, the same as always. For sites that manage configuration directly on the site rather than exporting it to code, this is largely a non-issue. For sites with strict configuration management workflows, WSE Config is still maturing (the session described it as almost production ready), so test it in a non-production environment before you rely on it in production.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What happens when two people edit the same content in different workspaces?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-happens-when-two-people-edit-the-same-content-in-different-workspaces",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>They cannot, and that is deliberate. Once an entity is modified in a workspace, it is tracked there, and another editor cannot modify it in a different workspace. This is a feature, not a limitation. Automatic merging of structured content fields, entity references, and media relationships leads to data corruption, and every system that has attempted it has run into fundamental issues.</p> <p>Workspaces takes the same approach as a well-run development team: coordinate through communication. Shared workspaces let teams collaborate, content ownership keeps responsibilities clear, and WSE lets you move content between workspaces when needed. If content is locked, discarding the change frees it again. The absence of automatic merging is a safety guarantee: your workspace will never contain content you did not put there.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How does Workspaces handle deleted content?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-does-workspaces-handle-deleted-content",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Deleting content in a workspace is a special case, because the content needs to disappear from your workspace preview while staying visible on the live site until you publish. Workspaces solves this with the Trash module. Within the workspace, deleted content drops out of listings, views, and search results, but on the live site it remains visible until publish. Content deleted in a workspace stays recoverable until you publish, and this integration also removes an older constraint so that any entity type can participate in workspaces, not just those with a publication status.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "How does Workspaces work with content moderation and Drupal's workflows?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#how-does-workspaces-work-with-content-moderation-and-drupals-workflows",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Workspaces integrates with Drupal's core Workflows module. You can move an entire workspace through workflow states such as draft, review, approved, and published, so the whole collection of changes moves through the approval process as a unit. Your legal team reviews the complete workspace, your content manager approves the entire set, and when it reaches the publish state the whole workspace deploys atomically. The Content Moderation and Workspaces integration is nearly complete, with one remaining issue to resolve in core, and the simplified content workflow initiative will make the two work together for more complex scenarios where different entities need different approval paths.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "Does it work with Canvas?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#does-it-work-with-canvas",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Yes. Workspaces is compatible with Canvas. The implementation differs, because Workspaces aligns with the Layout Builder approach rather than Canvas's own, but the two work together.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "Why is Workspaces a good fit for AI content generation?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#why-is-workspaces-a-good-fit-for-ai-content-generation",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>Workspaces gives AI content generation the boundary it needs. AI content tools are scaling quickly, and Drupal's AI module integrates dozens of providers with automators that can bulk-populate fields, generate summaries, and translate content. But AI is non-deterministic: it can hallucinate and produce errors. Workspaces provides the natural safety architecture. Think of a workspace like a pure function: everything inside is safe and reversible with no side effects. An AI agent can generate content, edit fields, and populate entire sections inside a workspace, and nothing touches live until a human reviews the changes and publishes. The workspace diff makes that review straightforward. The result is governed automation, where AI helps and humans stay in control.</p>"
      }
    },
    {
      "@type": "Question",
      "name": "What is on the roadmap?",
      "url": "https://www.tag1.com/white-paper/drupal-workspaces-faq/#what-is-on-the-roadmap",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "<p>The architecture is sound, and the remaining work is about closing the last gaps and proving the system in the wild. Content Moderation and Workspaces are nearly integrated, with one issue left in core. WSE Config, which stages configuration changes alongside content, is almost production ready. WSE Theme lets you preview an entirely different theme staged in a workspace. What the system needs most now is real-world testing: try it with your contrib modules, test it with your custom entity types, and report bugs when you find them. Every production deployment proves the architecture.</p>"
      }
    }
  ]
}
</script>
]]></description>
      <pubDate>Thu, 13 Aug 2026 00:00:00 GMT</pubDate>
      
      
      
        
      
      <dc:creator>Fabian Franz</dc:creator>
      <guid>https://www.tag1.com/white-paper/drupal-workspaces-faq/</guid>
    </item>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  </channel>
</rss>
