Skip to content

Instantly share code, notes, and snippets.

View juancarielo's full-sized avatar

Juan Carielo juancarielo

View GitHub Profile
@juancarielo
juancarielo / settings.ddev.php
Last active December 12, 2024 19:45
Local settings for Drupal using DDEV.
<?php
/**
* @file
* This is a Drupal 10 settings.ddev.php file automatically generated by DDEV.
*
* DDEV manages this file and may delete or overwrite it unless this
* comment, marked with #ddev-generated, is removed. It is recommended
* that you leave this file alone.
*/
@juancarielo
juancarielo / settings.local.php
Created February 10, 2024 01:08
Local settings for Drupal using Lando.
<?php
// Get info about Lando
$lando_info = json_decode(getenv('LANDO_INFO'), TRUE);
// Database
$databases['default']['default'] = [
'database' => $lando_info['database']['creds']['database'],
'username' => $lando_info['database']['creds']['user'],
'password' => $lando_info['database']['creds']['password'],
@juancarielo
juancarielo / services.ddev.yml
Last active December 12, 2024 19:43
Local services for Drupal.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory

Disable cache Drupal 9

Now you don't need to run drush cr every time.