Skip to content

Commit

Permalink
Default deployment_identifier to composer.lock modified time
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Sep 7, 2023
1 parent dfa9e36 commit 0cdc272
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,13 @@
include_once __DIR__ . '/azure.settings.php'; // NOSONAR
}
}

/**
* Deployment identifier.
*
* Default 'deployment_identifier' cache key to modified time of 'composer.lock'
* file in case it's not already defined.
*/
if (empty($settings['deployment_identifier'])) {
$settings['deployment_identifier'] = filemtime(__DIR__ . '/../../../composer.lock');
}

0 comments on commit 0cdc272

Please sign in to comment.