Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions web/sites/default/settings.ddev.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,24 @@
// better performance.
$settings['class_loader_auto_detect'] = FALSE;

// Cache settings for local development. Below enables caching during testing,
// and disables caching at other times on ddev which is handy during develoment.
// If you wish to override below settings, you can do so in
// /web/sites/default/settings.local.php (not /web/sites/settings.local.php!).
$config['system.performance']['css']['preprocess'] = defined('DTT_BASE_URL');
Copy link
Member

@AronNovak AronNovak Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could keep an eye on https://docs.travis-ci.com/user/environment-variables, CI=true for instance.
So inside Travis, it's always enabled, regardless of the method. of accessing the site.

We need to make sure we try to pass CI=true like TRAVIS_COMMIT_MESSAGE.

$config['system.performance']['js']['preprocess'] = defined('DTT_BASE_URL');
if (!defined('DTT_BASE_URL')) {
// Enable local development services.
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
// Disable the render cache.
$settings['cache']['bins']['render'] = 'cache.backend.null';
// Disable Internal Page Cache.
$settings['cache']['bins']['page'] = 'cache.backend.null';
// Disable Dynamic Page Cache.
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
}

// Include /web/sites/default/settings.local.php if it exists.
if (isset($app_root) && isset($site_path)) {
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
Expand Down