Skip to main content
[2025-12-02]

Preventing a `drush updb` from clearing your caches

#drupal #drush

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

[2023-06-21]

Using jq with Drush to inspect state values in Drupal

#drush #drupal

Drupal has a key-value database table that stores information about the current environment. The values stored are serialized PHP objects or arrays. That makes inspecting them nearly impossible by just querying the database. Luckily, Drush provides a state:get command for retrieving those values.

[2022-08-07]

ReactPHP for Drupal deployments and workers

#drupal #reactphp #drush

I recently held a live stream where I walked through the continuous integration and deployment (CI/CD) of a Drupal project to DigitalOcean's App Platform and other CI/CD items. App Platform has its quirks, but it's simple to build an application with various components.