|
77 | 77 | * |
78 | 78 | * @code |
79 | 79 | * $databases['default']['default'] = [ |
80 | | - * 'database' => 'databasename', |
| 80 | + * 'database' => 'database_name', |
81 | 81 | * 'username' => 'sql_username', |
82 | 82 | * 'password' => 'sql_password', |
83 | 83 | * 'host' => 'localhost', |
|
181 | 181 | * |
182 | 182 | * WARNING: The above defaults are designed for database portability. Changing |
183 | 183 | * them may cause unexpected behavior, including potential data loss. See |
184 | | - * https://www.drupal.org/developing/api/database/configuration for more |
185 | | - * information on these defaults and the potential issues. |
| 184 | + * https://www.drupal.org/docs/8/api/database-api/database-configuration for |
| 185 | + * more information on these defaults and the potential issues. |
186 | 186 | * |
187 | 187 | * More details can be found in the constructor methods for each driver: |
188 | 188 | * - \Drupal\mysql\Driver\Database\mysql\Connection::__construct() |
|
193 | 193 | * @code |
194 | 194 | * $databases['default']['default'] = [ |
195 | 195 | * 'driver' => 'pgsql', |
196 | | - * 'database' => 'databasename', |
| 196 | + * 'database' => 'database_name', |
197 | 197 | * 'username' => 'sql_username', |
198 | 198 | * 'password' => 'sql_password', |
199 | 199 | * 'host' => 'localhost', |
|
215 | 215 | * 'driver' => 'my_driver', |
216 | 216 | * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', |
217 | 217 | * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', |
218 | | - * 'database' => 'databasename', |
| 218 | + * 'database' => 'database_name', |
219 | 219 | * 'username' => 'sql_username', |
220 | 220 | * 'password' => 'sql_password', |
221 | 221 | * 'host' => 'localhost', |
|
230 | 230 | * 'driver' => 'my_driver', |
231 | 231 | * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', |
232 | 232 | * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', |
233 | | - * 'database' => 'databasename', |
| 233 | + * 'database' => 'database_name', |
234 | 234 | * 'username' => 'sql_username', |
235 | 235 | * 'password' => 'sql_password', |
236 | 236 | * 'host' => 'localhost', |
|
355 | 355 | * security, or encryption benefits. In an environment where Drupal |
356 | 356 | * is behind a reverse proxy, the real IP address of the client should |
357 | 357 | * be determined such that the correct client IP address is available |
358 | | - * to Drupal's logging, statistics, and access management systems. In |
359 | | - * the most simple scenario, the proxy server will add an |
360 | | - * X-Forwarded-For header to the request that contains the client IP |
361 | | - * address. However, HTTP headers are vulnerable to spoofing, where a |
362 | | - * malicious client could bypass restrictions by setting the |
363 | | - * X-Forwarded-For header directly. Therefore, Drupal's proxy |
364 | | - * configuration requires the IP addresses of all remote proxies to be |
365 | | - * specified in $settings['reverse_proxy_addresses'] to work correctly. |
| 358 | + * to Drupal's logging and access management systems. In the most simple |
| 359 | + * scenario, the proxy server will add an X-Forwarded-For header to the request |
| 360 | + * that contains the client IP address. However, HTTP headers are vulnerable to |
| 361 | + * spoofing, where a malicious client could bypass restrictions by setting the |
| 362 | + * X-Forwarded-For header directly. Therefore, Drupal's proxy configuration |
| 363 | + * requires the IP addresses of all remote proxies to be specified in |
| 364 | + * $settings['reverse_proxy_addresses'] to work correctly. |
366 | 365 | * |
367 | 366 | * Enable this setting to get Drupal to determine the client IP from the |
368 | 367 | * X-Forwarded-For header. If you are unsure about this setting, do not have a |
|
731 | 730 | * Provide a fully qualified class name here if you would like to provide an |
732 | 731 | * alternate implementation YAML parser. The class must implement the |
733 | 732 | * \Drupal\Component\Serialization\SerializationInterface interface. |
| 733 | + * |
| 734 | + * This setting is deprecated in Drupal 10.3 and removed in Drupal 11. |
734 | 735 | */ |
735 | 736 | # $settings['yaml_parser_class'] = NULL; |
736 | 737 |
|
|
808 | 809 | */ |
809 | 810 | $settings['entity_update_backup'] = TRUE; |
810 | 811 |
|
| 812 | +/** |
| 813 | + * State caching. |
| 814 | + * |
| 815 | + * State caching uses the cache collector pattern to cache all requested keys |
| 816 | + * from the state API in a single cache entry, which can greatly reduce the |
| 817 | + * amount of database queries. However, some sites may use state with a |
| 818 | + * lot of dynamic keys which could result in a very large cache. |
| 819 | + */ |
| 820 | +$settings['state_cache'] = TRUE; |
| 821 | + |
811 | 822 | /** |
812 | 823 | * Node migration type. |
813 | 824 | * |
|
0 commit comments